def test_arc_grid_engine_surface_importable(): from proteus.game.engine import Sprite, Level, Camera, ARCBaseGame, GameAction sprite = Sprite(pixels=[[1]], name="x", x=0, y=0) assert sprite.x == 0 and sprite.y == 0 def test_arc_grid_has_no_squid_game_imports(): import pathlib # Anchor on this test file's location, not the cwd, so the invariant can # never pass vacuously (an empty rglob) when pytest runs from elsewhere. # The vendored ARC engine moved to proteus/game/engine in the game/web # restructure (was proteus/arc_grid). root = pathlib.Path(__file__).parent.parent / "proteus" / "game" / "engine" assert root.is_dir(), f"vendored engine not found at {root}" offenders = [ p for p in root.rglob("*.py") if "squid_game" in p.read_text(encoding="utf-8") ] assert offenders == [], f"vendored engine must not import squid_game: {offenders}"