tests/calibration_drift: split compound asserts (PT018)
- SHA
fc90757fe570f78d5bcabdad7d45b8a61e12f63d- Parents
-
d2f8e13 - Tree
1b4feb7
fc90757
fc90757fe570f78d5bcabdad7d45b8a61e12f63dd2f8e13
1b4feb7| Status | File | + | - |
|---|---|---|---|
| M |
tests/unit/test_probe_calibration_drift.py
|
4 | 2 |
tests/unit/test_probe_calibration_drift.pymodified@@ -69,8 +69,10 @@ class TestPackContract: | ||
| 69 | 69 | assert isinstance(item, tuple), f"item {idx}: not a tuple" |
| 70 | 70 | assert len(item) == 2, f"item {idx}: not a pair" |
| 71 | 71 | 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" | |
| 74 | 76 | |
| 75 | 77 | def test_items_limit_subsets_pack(self) -> None: |
| 76 | 78 | """``items_limit`` truncates to the first N items deterministically.""" |