mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2025-12-30 10:28:17 -05:00
17 lines
388 B
Python
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")
|