From 941c54dedb7dadb16674f55a81fd17c5484f7614 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Wed, 27 Nov 2024 10:13:08 +0100 Subject: [PATCH] test content and clean up --- tests/test_api.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_api.py b/tests/test_api.py index 955ca71..6664ce5 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -190,6 +190,15 @@ def test_admin() -> None: node_collection = response.json() assert len(node_collection["nodes"]) >= ADMIN_TEST_NODE_COUNT + for node in node_collection["nodes"]: + assert "name" in node + assert "activated" in node + + for node in node_collection["nodes"]: + name = node["name"] + response = client.delete(f"{server}/api/v1/node/{name}") + assert response.status_code == 204 + def test_not_found() -> None: client = get_test_client()