diff --git a/tests/test_app.py b/tests/test_app.py index 3aa6c63..f12244b 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -359,7 +359,7 @@ class AppHandlerTests(ServerTestCase): self.assertEqual(response.status, 200) self.assertEqual(content_type, "text/csv; charset=utf-8") - self.assertIn("helsesjekk-export.csv", disposition) + self.assertIn("vardkey-export.csv", disposition) rows = list(csv.reader(io.StringIO(body))) self.assertEqual(rows[0], list(HEADERS)) @@ -483,6 +483,17 @@ class AppHandlerTests(ServerTestCase): self.assertIn("Download CSV", body) self.assertNotIn("Report export is not implemented", body) + def test_the_dashboard_shows_the_product_name_and_the_description(self): + with urlopen(self.base_url) as response: + body = response.read().decode("utf-8") + + self.assertEqual(response.status, 200) + # The app is called VardKey, and its description is shown on the + # dashboard, under the title (section 29). + self.assertIn("VardKey", body) + self.assertIn("VardKey", body) + self.assertIn("Bitcoin Multisig Health Monitor", body) + def test_alerts_api_is_empty_before_anything_is_saved(self): with urlopen(f"{self.base_url}/api/alerts") as response: self.assertEqual(json.load(response), [])