mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-08-07 17:33:20 +02:00
Fix nodes page test to match template output
The test was checking for adv_type values (REPEATER, CLIENT) but the nodes.html template doesn't display that column. Updated to check for public key prefixes instead. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -31,11 +31,11 @@ class TestNodesListPage:
|
||||
"""Test that nodes page displays node data from API."""
|
||||
response = client.get("/nodes")
|
||||
assert response.status_code == 200
|
||||
# Check for node data from mock
|
||||
# Check for node data from mock (names and public key prefixes)
|
||||
assert "Node One" in response.text
|
||||
assert "Node Two" in response.text
|
||||
assert "REPEATER" in response.text
|
||||
assert "CLIENT" in response.text
|
||||
assert "abc123" in response.text
|
||||
assert "def456" in response.text
|
||||
|
||||
def test_nodes_displays_public_keys(
|
||||
self, client: TestClient, mock_http_client: MockHttpClient
|
||||
|
||||
Reference in New Issue
Block a user