test: GET /keys/{id}

This commit is contained in:
callebtc
2022-12-25 11:31:46 +01:00
parent cc06a33d98
commit 5fce0cf6e8

View File

@@ -57,6 +57,16 @@ async def test_get_keys(wallet1: Wallet):
assert len(keyset.id) > 0
@pytest.mark.asyncio
async def test_get_keyset(wallet1: Wallet):
assert len(wallet1.keys) == MAX_ORDER
# ket's get the keys first so we can get a keyset ID that we use later
keys1 = await wallet1._get_keys(wallet1.url)
# gets the keys of a specific keyset
keys2 = await wallet1._get_keyset(wallet1.url, keys1.id)
assert len(keys1.public_keys) == len(keys2.public_keys)
@pytest.mark.asyncio
async def test_get_keysets(wallet1: Wallet):
keyset = await wallet1._get_keysets(wallet1.url)