From c1f147cc8183b2e69bf55f7a8b2cf7a37798b4cc Mon Sep 17 00:00:00 2001 From: Glandos Date: Sat, 28 Jan 2023 16:45:04 +0100 Subject: [PATCH] fix tests, broken by #1096 Now the "danger" strings appears nearly everywhere, but the test looks for a flash message, thus "alert-danger" --- ihatemoney/tests/history_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/tests/history_test.py b/ihatemoney/tests/history_test.py index a8b3e10b..5319b125 100644 --- a/ihatemoney/tests/history_test.py +++ b/ihatemoney/tests/history_test.py @@ -36,7 +36,7 @@ class HistoryTestCase(IhatemoneyTestCase): # Disable History resp = self.client.post("/demo/edit", data=new_data, follow_redirects=True) self.assertEqual(resp.status_code, 200) - self.assertNotIn("danger", resp.data.decode("utf-8")) + self.assertNotIn("alert-danger", resp.data.decode("utf-8")) resp = self.client.get("/demo/edit") self.assertEqual(resp.status_code, 200)