Files
galaxy-integrations-python-api/tests/test_launch_game.py
2019-02-11 11:07:57 +01:00

17 lines
388 B
Python

import asyncio
import json
def test_success(plugin, readline):
request = {
"jsonrpc": "2.0",
"method": "launch_game",
"params": {
"game_id": "3"
}
}
readline.side_effect = [json.dumps(request), ""]
plugin.get_owned_games.return_value = None
asyncio.run(plugin.run())
plugin.launch_game.assert_called_with(game_id="3")