Skip to content

Commit

Permalink
test content and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Nov 27, 2024
1 parent a31b772 commit 941c54d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 941c54d

Please sign in to comment.