Skip to content

Commit

Permalink
chore: test logic update
Browse files Browse the repository at this point in the history
Signed-off-by: joshuaunity <[email protected]>
  • Loading branch information
joshuaunity committed Nov 4, 2024
1 parent 0c21942 commit 6a71600
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions flexmeasures/api/v3_0/tests/test_sensors_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,8 @@ def test_fetch_sensors(

print("Server responded with:\n%s" % response.json)

if expected_status_code > 400:
assert response.status_code == expected_status_code
else:
assert response.status_code == expected_status_code

assert response.status_code == expected_status_code
if expected_status_code == 200:
if use_pagination:
assert isinstance(response.json["data"][0], dict)
assert is_valid_unit(response.json["data"][0]["unit"])
Expand Down

0 comments on commit 6a71600

Please sign in to comment.