From 7ed269547ff7a4ee766e53b79e77bcd6e5993091 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Fri, 2 Oct 2026 09:49:19 +0000 Subject: [PATCH] tests: dashboard links to the CSV export --- tests/test_app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_app.py b/tests/test_app.py index a8c2683..1ccffe5 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -206,12 +206,15 @@ class AppHandlerTests(unittest.TestCase): self.assertIn('id="history-list"', body) self.assertIn("Saved health checks", body) - def test_dashboard_links_to_health_check_form(self): + def test_dashboard_links_to_the_form_the_history_and_the_export(self): with urlopen(self.base_url) as response: body = response.read().decode("utf-8") self.assertIn('href="/health-check"', body) self.assertIn('href="/history"', body) + self.assertIn('href="/api/export"', body) + self.assertIn("Download CSV", body) + self.assertNotIn("Report export is not implemented", body) def test_alerts_api_is_empty_before_anything_is_saved(self): with urlopen(f"{self.base_url}/api/alerts") as response: