fix(test): access DeckyRow.uuid as attribute, not dict key

This commit is contained in:
2026-05-10 05:36:07 -04:00
parent 16e032b7a5
commit 95593cb804

View File

@@ -132,7 +132,7 @@ async def test_decky_create_ok(client, auth_token):
async def test_decky_patch_ok(client, auth_token): async def test_decky_patch_ok(client, auth_token):
topology_id = await _seed("decky-patch") topology_id = await _seed("decky-patch")
deckies = await _repo.list_topology_deckies(topology_id) deckies = await _repo.list_topology_deckies(topology_id)
decky_uuid = deckies[0]["uuid"] decky_uuid = deckies[0].uuid
r = await client.patch( r = await client.patch(
f"{_V1}/{topology_id}/deckies/{decky_uuid}", f"{_V1}/{topology_id}/deckies/{decky_uuid}",
@@ -185,7 +185,7 @@ async def test_edge_create_and_delete(client, auth_token):
lan_id = new_lan.json()["id"] lan_id = new_lan.json()["id"]
deckies = await _repo.list_topology_deckies(topology_id) deckies = await _repo.list_topology_deckies(topology_id)
decky_uuid = deckies[0]["uuid"] decky_uuid = deckies[0].uuid
r = await client.post( r = await client.post(
f"{_V1}/{topology_id}/edges", f"{_V1}/{topology_id}/edges",