Upload tests/test_pipeline.py with huggingface_hub
Browse files- tests/test_pipeline.py +3 -2
tests/test_pipeline.py
CHANGED
|
@@ -102,7 +102,7 @@ class TestLint:
|
|
| 102 |
assert "pv13_customergraphrank_page_rank" in FIELD_INDEX
|
| 103 |
|
| 104 |
def test_no_typos_in_field_registry(self):
|
| 105 |
-
"""Verify no 'ustomer' typos remain."""
|
| 106 |
for fid in FIELD_INDEX:
|
| 107 |
assert "_ustomergraphrank" not in fid, f"Typo found in field: {fid}"
|
| 108 |
|
|
@@ -270,9 +270,10 @@ class TestAsyncPipeline:
|
|
| 270 |
pipeline = AlphaPipeline(config)
|
| 271 |
result = await pipeline.run_batch(3)
|
| 272 |
|
|
|
|
| 273 |
assert "promoted" in result or "iterated" in result or "killed" in result
|
| 274 |
total = result.get("promoted", 0) + result.get("iterated", 0) + result.get("killed", 0)
|
| 275 |
-
assert total
|
| 276 |
|
| 277 |
pipeline.close()
|
| 278 |
|
|
|
|
| 102 |
assert "pv13_customergraphrank_page_rank" in FIELD_INDEX
|
| 103 |
|
| 104 |
def test_no_typos_in_field_registry(self):
|
| 105 |
+
"""Verify no 'ustomer' typos remain (missing 'c' in customer)."""
|
| 106 |
for fid in FIELD_INDEX:
|
| 107 |
assert "_ustomergraphrank" not in fid, f"Typo found in field: {fid}"
|
| 108 |
|
|
|
|
| 270 |
pipeline = AlphaPipeline(config)
|
| 271 |
result = await pipeline.run_batch(3)
|
| 272 |
|
| 273 |
+
# Pipeline now has local sim + checklist gates — results may be killed
|
| 274 |
assert "promoted" in result or "iterated" in result or "killed" in result
|
| 275 |
total = result.get("promoted", 0) + result.get("iterated", 0) + result.get("killed", 0)
|
| 276 |
+
assert total == 3, f"Expected 3 results, got {total}"
|
| 277 |
|
| 278 |
pipeline.close()
|
| 279 |
|