Files
galaxy-integrations-python-api/tests/test_shutdown_platform_client.py
2019-07-17 15:27:27 +02:00

16 lines
384 B
Python

import json
import pytest
@pytest.mark.asyncio
async def test_success(plugin, read):
request = {
"jsonrpc": "2.0",
"method": "shutdown_platform_client"
}
read.side_effect = [json.dumps(request).encode() + b"\n", b""]
plugin.shutdown_platform_client.return_value = None
await plugin.run()
plugin.shutdown_platform_client.assert_called_with()