"""Tests for dashboard routes — 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 TestDashboard: def test_root_returns_html(self, client): resp = client.get("/") assert resp.status_code == 200 assert b"html" in resp.data.lower() def test_console_route(self, client): resp = client.get("/console") assert resp.status_code == 200 assert b"html" in resp.data.lower() def test_dashboard_shows_status(self, client): resp = client.get("/") assert b"I2P" in resp.data def test_dashboard_shows_version(self, client): resp = client.get("/") # Should contain version info somewhere assert b"version" in resp.data.lower() or b"Version" in resp.data