def game_runner(): async def mock_callback(): pass game_state = GameState(InfiniteMap(), AvatarManager()) game_runner = GameRunner( game_state_generator=lambda avatar_manager: game_state, port="0000", communicator=MockCommunicator(), worker_manager_class=MockWorkerManager, ) game_runner.set_end_turn_callback(mock_callback) return game_runner
def game_runner(): async def mock_callback(): pass game_state = GameState(InfiniteMap(), AvatarManager()) game_runner = GameRunner( worker_manager_class=ConcreteWorkerManager, game_state_generator=lambda avatar_manager: game_state, port='0000', django_api_url='http://test') game_runner.communicator = MockCommunicator() game_runner.set_end_turn_callback(mock_callback) return game_runner