mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-05-03 07:04:58 -04:00
test work
This commit is contained in:
parent
b8e5039251
commit
b6e055e47d
21 changed files with 664 additions and 171 deletions
|
@ -9,12 +9,12 @@ from .conftest import simple_update_callback
|
|||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_connect(api_connection):
|
||||
async def test_connect(api_connection: veilid.VeilidAPI):
|
||||
pass
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_node_id(api_connection):
|
||||
async def test_get_node_id(api_connection: veilid.VeilidAPI):
|
||||
state = await api_connection.get_state()
|
||||
node_ids = state.config.config.network.routing_table.node_id
|
||||
|
||||
|
@ -35,7 +35,7 @@ async def test_fail_connect():
|
|||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_version(api_connection):
|
||||
async def test_version(api_connection: veilid.VeilidAPI):
|
||||
v = await api_connection.veilid_version()
|
||||
print(f"veilid_version: {v.__dict__}")
|
||||
assert v.__dict__.keys() >= {"_major", "_minor", "_patch"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue