From e2d865f200a2a5904fb361794682f687dc0cb54b Mon Sep 17 00:00:00 2001 From: Louis King Date: Thu, 4 Dec 2025 01:03:05 +0000 Subject: [PATCH] Fix nodes page test to match template output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/test_web/test_nodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_web/test_nodes.py b/tests/test_web/test_nodes.py index 290bdcf..076f7be 100644 --- a/tests/test_web/test_nodes.py +++ b/tests/test_web/test_nodes.py @@ -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