Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkent committed Nov 11, 2023
1 parent 8231c5a commit af385e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compose/neurosynth_compose/tests/api/test_specification.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@ def test_update_spec(session, app, auth_client, user_data, attribute, value):
get_spec = auth_client.get(f"/api/specifications/{spec_id}")
assert get_spec.status_code == 200

assert get_spec.json[attribute] == value
if isinstance(value, list):
assert set(get_spec.json[attribute]) == set(value)
else:
assert get_spec.json[attribute] == value

0 comments on commit af385e1

Please sign in to comment.