mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-02 03:48:16 -05:00
16 lines
384 B
Python
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()
|