fix tests, broken by #1096

Now the "danger" strings appears nearly everywhere, but the test looks for a flash message, thus "alert-danger"
This commit is contained in:
Glandos 2023-01-28 16:45:04 +01:00
parent 165ca86bda
commit c1f147cc81

View file

@ -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)