mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-10 12:29:49 +03:00
9b7d7d2555
* remove old ws
20 lines
588 B
Python
20 lines
588 B
Python
import pytest
|
|
|
|
from chia import __version__
|
|
from chia.daemon.client import connect_to_daemon
|
|
|
|
|
|
class TestDaemonRpc:
|
|
@pytest.mark.asyncio
|
|
async def test_get_version_rpc(self, get_daemon, bt):
|
|
ws_server = get_daemon
|
|
config = bt.config
|
|
client = await connect_to_daemon(
|
|
config["self_hostname"], config["daemon_port"], 50 * 1000 * 1000, bt.get_daemon_ssl_context()
|
|
)
|
|
response = await client.get_version()
|
|
|
|
assert response["data"]["success"]
|
|
assert response["data"]["version"] == __version__
|
|
ws_server.stop()
|