Skip to content

Commit

Permalink
Refine result object unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Mar 20, 2024
1 parent 97199c3 commit cb8fe0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_result_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,10 @@ def test_batch_init_id_without_a_session(self):
def test_unusual_response_formatting(self):
_returned = False
cspm = CSPMRegistration(auth_object=config)
result = cspm.get_configuration_detections(limit=1)["body"]["resources"]
try:
result = cspm.get_configuration_detections(limit=1)["body"]["resources"]
except KeyError:
result = Result(status_code=200, headers={}, body={"something": "different"}).full_return
if isinstance(result, dict):
_returned = True
assert _returned
Expand Down

0 comments on commit cb8fe0c

Please sign in to comment.