Python: Add tests to Purview Package (#3513)

* Add tests to increase code coverage

* Add tests to increase code coverage
This commit is contained in:
Rishabh Chawla
2026-01-30 23:08:39 +00:00
committed by GitHub
parent 493891620d
commit 2f7250fe0f
6 changed files with 487 additions and 4 deletions
@@ -211,9 +211,8 @@ class ScopedContentProcessor:
cache_key = create_protection_scopes_cache_key(ps_req)
cached_ps_resp = await self._cache.get(cache_key)
if cached_ps_resp is not None:
if isinstance(cached_ps_resp, ProtectionScopesResponse):
ps_resp = cached_ps_resp
if cached_ps_resp is not None and isinstance(cached_ps_resp, ProtectionScopesResponse):
ps_resp = cached_ps_resp
else:
try:
ps_resp = await self._client.get_protection_scopes(ps_req)