tenseleyflow/sway / fc90757

Browse files

tests/calibration_drift: split compound asserts (PT018)

Authored by espadonne
SHA
fc90757fe570f78d5bcabdad7d45b8a61e12f63d
Parents
d2f8e13
Tree
1b4feb7

1 changed file

StatusFile+-
M tests/unit/test_probe_calibration_drift.py 4 2
tests/unit/test_probe_calibration_drift.pymodified
@@ -69,8 +69,10 @@ class TestPackContract:
6969
             assert isinstance(item, tuple), f"item {idx}: not a tuple"
7070
             assert len(item) == 2, f"item {idx}: not a pair"
7171
             prompt, gold = item
72
-            assert isinstance(prompt, str) and prompt, f"item {idx}: bad prompt"
73
-            assert isinstance(gold, str) and gold, f"item {idx}: bad gold"
72
+            assert isinstance(prompt, str), f"item {idx}: prompt not str"
73
+            assert prompt, f"item {idx}: empty prompt"
74
+            assert isinstance(gold, str), f"item {idx}: gold not str"
75
+            assert gold, f"item {idx}: empty gold"
7476
 
7577
     def test_items_limit_subsets_pack(self) -> None:
7678
         """``items_limit`` truncates to the first N items deterministically."""