test(multiplayer): make local gate portable

This commit is contained in:
Josh Creek
2026-09-03 21:12:40 +01:00
parent 3b523cf525
commit 2050acd63d
3 changed files with 37 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
from pathlib import Path
import unittest
ROOT = Path(__file__).parents[1]
class LocalMultiplayerGateTest(unittest.TestCase):
def test_godot_gate_has_a_digest_pinned_container_fallback(self):
script = (ROOT / "scripts" / "verify_multiplayer_local.sh").read_text()
self.assertIn("run_godot_harness()", script)
self.assertIn("barichello/godot-ci@sha256:", script)
self.assertIn("docker run --rm --platform linux/amd64", script)
self.assertIn("type=bind,src=$root_dir,dst=/workspace", script)
self.assertIn("Godot executable not found", script)
if __name__ == "__main__":
unittest.main()