Skip to content

Commit

Permalink
Add dummy implementation for client command match_ready (#607) (#820)
Browse files Browse the repository at this point in the history
* Add dummy implementation for client command `match_ready` (#607)

* Add test

* Fx test

* Fix test 2

* Fix test 3
  • Loading branch information
Katharsas authored Aug 9, 2021
1 parent b977205 commit 9955891
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/lobbyconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,13 @@ async def command_game_host(self, message):
)
await self.launch_game(game, is_host=True)

async def command_match_ready(self, message):
"""
Replace with full implementation when implemented in client, see:
https://github.com/FAForever/downlords-faf-client/issues/1783
"""
pass

async def launch_game(
self,
game,
Expand Down
6 changes: 6 additions & 0 deletions tests/unit_tests/test_lobbyconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,13 @@ async def test_command_game_matchmaking_not_party_owner(

lobbyconnection.ladder_service.cancel_search.assert_called_once()


async def test_command_match_ready(lobbyconnection):
await lobbyconnection.on_message_received({
"command": "match_ready"
})


async def test_command_matchmaker_info(
lobbyconnection,
ladder_service,
Expand Down

0 comments on commit 9955891

Please sign in to comment.