Skip to content

Commit 284e15b

Browse files
committed
Add tests to increase code coverage
1 parent 91df2da commit 284e15b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/packages/purview/agent_framework_purview/_processor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,8 @@ async def _process_with_scopes(self, pc_request: ProcessContentRequest) -> Proce
211211
cache_key = create_protection_scopes_cache_key(ps_req)
212212
cached_ps_resp = await self._cache.get(cache_key)
213213

214-
if cached_ps_resp is not None:
215-
if isinstance(cached_ps_resp, ProtectionScopesResponse):
216-
ps_resp = cached_ps_resp
214+
if cached_ps_resp is not None and isinstance(cached_ps_resp, ProtectionScopesResponse):
215+
ps_resp = cached_ps_resp
217216
else:
218217
try:
219218
ps_resp = await self._client.get_protection_scopes(ps_req)

0 commit comments

Comments
 (0)