Skip to content

Commit 50d6112

Browse files
committed
Adjusted logic for comparing actual output against expected one
1 parent 4f33b93 commit 50d6112

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/util/test_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ def test_get_visit_list(
114114
expected_url = f"{server_url}/instruments/{instrument_name}/visits_raw"
115115
mock_request.get.assert_called_once_with(expected_url)
116116

117-
# Check that expected outputs are correct (order-insensitive)
118-
assert {visit.dict() for visit in visits} == set(example_visits)
117+
# Check that expected outputs are correct (order-sensitive)
118+
for v, visit in enumerate(visits):
119+
assert visit.dict() == example_visits[v]
119120

120121

121122
def test_set_default_acquisition_output_normal_operation(tmp_path):

0 commit comments

Comments
 (0)