mock-game

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL