mirror of
https://gitlab.com/veilid/veilid.git
synced 2026-01-07 02:25:36 -05:00
immutable config
This commit is contained in:
parent
45dffe0d9f
commit
681fdf9f7c
79 changed files with 733 additions and 1319 deletions
|
|
@ -16,14 +16,14 @@ async def test_connect(api_connection: veilid.VeilidAPI):
|
|||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_get_public_keys(api_connection: veilid.VeilidAPI):
|
||||
async def test_get_node_ids(api_connection: veilid.VeilidAPI):
|
||||
state = await api_connection.get_state()
|
||||
public_keys = state.config.config.network.routing_table.public_keys
|
||||
node_ids = state.network.node_ids
|
||||
|
||||
assert len(public_keys) >= 1
|
||||
assert len(node_ids) >= 1
|
||||
|
||||
for public_key in public_keys:
|
||||
assert public_key[4] == ":"
|
||||
for node_id in node_ids:
|
||||
assert node_id[4] == ":"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue