test: Improve test sequence (simplifies analysis)

This commit is contained in:
Matthias
2026-03-06 20:47:21 +01:00
parent 3a28c91635
commit 437d0a264c
+1 -1
View File
@@ -117,10 +117,10 @@ class TestCCXTExchange:
# Generic comparison which works for all fields
for key, value in expected.items():
assert key in po, f"Expected key {key} not found in parsed order"
assert po[key] == value, f"Expected {key} to be {value}, got {po[key]}"
assert isinstance(po[key], type(value)), (
f"Expected {key} to be of type {type(value)}, got {type(po[key])}"
)
assert po[key] == value, f"Expected {key} to be {value}, got {po[key]}"
else:
pytest.skip(f"No sample order available for exchange {exchangename}")