Spaces:
Runtime error
Runtime error
Commit ·
807e057
1
Parent(s): 764e34c
test(cp0): anchor arc_grid invariant guard on __file__ (no vacuous pass)
Browse files
tests/test_arc_grid_vendored.py
CHANGED
|
@@ -6,7 +6,10 @@ def test_arc_grid_engine_surface_importable():
|
|
| 6 |
|
| 7 |
def test_arc_grid_has_no_squid_game_imports():
|
| 8 |
import pathlib
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
offenders = [
|
| 11 |
p for p in root.rglob("*.py")
|
| 12 |
if "squid_game" in p.read_text(encoding="utf-8")
|
|
|
|
| 6 |
|
| 7 |
def test_arc_grid_has_no_squid_game_imports():
|
| 8 |
import pathlib
|
| 9 |
+
# Anchor on this test file's location, not the cwd, so the invariant can
|
| 10 |
+
# never pass vacuously (an empty rglob) when pytest runs from elsewhere.
|
| 11 |
+
root = pathlib.Path(__file__).parent.parent / "proteus" / "arc_grid"
|
| 12 |
+
assert root.is_dir(), f"vendored arc_grid not found at {root}"
|
| 13 |
offenders = [
|
| 14 |
p for p in root.rglob("*.py")
|
| 15 |
if "squid_game" in p.read_text(encoding="utf-8")
|