Skip to content

Commit

Permalink
Use only rv['StatusCode'] to simplify code (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru authored Aug 25, 2023
1 parent 44f9962 commit 7a4381f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ def run_and_wait(
assert not self.get_warnings(logs)
if no_errors:
assert not self.get_errors(logs)
if no_failure:
assert rv == 0 or rv["StatusCode"] == 0
else:
assert rv != 0 and rv["StatusCode"] != 0
assert no_failure == (rv["StatusCode"] == 0)
return logs

@staticmethod
Expand Down

0 comments on commit 7a4381f

Please sign in to comment.