Documentation
¶
Overview ¶
Command mock-game serves the lobby's mock game, package mockgame, over HTTP, so that live tests can configure a lobby host with a game that it calls over HTTP, as integration/run.py --mock-game does. It reads:
MOCK_GAME_ADDR host:port to listen on MOCK_GAME_KEY the game's key, mock-game when unset MOCK_GAME_SECRET the hooks' shared secret, at least 32 bytes MOCK_GAME_LOBBY_URL optional: the lobby whose game API GET /watch reads MOCK_GAME_RULES on (the default) or off
The hooks are served under mockgame.HooksPath. With MOCK_GAME_RULES=off the game keeps its start and round end, but takes no game settings and no member settings, has no seats, and lets everyone get ready, as a game without rules of its own does, so the lobby's generic live suite plays it.
Click to show internal directories.
Click to hide internal directories.