mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2025-12-23 23:18:15 -05:00
18 lines
505 B
Python
18 lines
505 B
Python
import pytest
|
|
|
|
from galaxy.unittest.mock import async_return_value
|
|
|
|
from tests import create_message
|
|
|
|
@pytest.mark.asyncio
|
|
async def test_success(plugin, read):
|
|
request = {
|
|
"jsonrpc": "2.0",
|
|
"method": "shutdown_platform_client"
|
|
}
|
|
|
|
read.side_effect = [async_return_value(create_message(request)), async_return_value(b"")]
|
|
plugin.shutdown_platform_client.return_value = async_return_value(None)
|
|
await plugin.run()
|
|
plugin.shutdown_platform_client.assert_called_with()
|