Files
galaxy-integrations-python-api/tests/test_install_game.py

20 lines
413 B
Python

import pytest
from tests import create_message
@pytest.mark.asyncio
async def test_success(plugin, read):
request = {
"jsonrpc": "2.0",
"method": "install_game",
"params": {
"game_id": "3"
}
}
read.side_effect = [create_message(request), b""]
await plugin.run()
await plugin.wait_closed()
plugin.install_game.assert_called_with(game_id="3")