"""Tests for content/display pages — TDD: tests before implementation.""" import pytest from i2p_apps.console.app import create_app @pytest.fixture def client(): app = create_app({"TESTING": True}) return app.test_client() class TestPeersPage: def test_peers_renders(self, client): resp = client.get("/peers") assert resp.status_code == 200 assert b"Peers" in resp.data def test_peers_has_table(self, client): resp = client.get("/peers") assert b"table" in resp.data.lower() class TestTunnelsPage: def test_tunnels_renders(self, client): resp = client.get("/tunnels") assert resp.status_code == 200 assert b"Tunnel" in resp.data class TestNetDBPage: def test_netdb_renders(self, client): resp = client.get("/netdb") assert resp.status_code == 200 assert b"NetDB" in resp.data class TestLogsPage: def test_logs_renders(self, client): resp = client.get("/logs") assert resp.status_code == 200 assert b"Log" in resp.data class TestProfilesPage: def test_profiles_renders(self, client): resp = client.get("/profiles") assert resp.status_code == 200 assert b"Profile" in resp.data