From f6996c69b8276ad985ec95fb4403bed4295709a4 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 07 2019 10:22:35 +0000 Subject: Finally fix running the unit-tests on jenkins --- diff --git a/tests/test_flask.py b/tests/test_flask.py index 8fa5cff..62e5f35 100644 --- a/tests/test_flask.py +++ b/tests/test_flask.py @@ -1469,9 +1469,11 @@ class Flasktests(Modeltests): follow_redirects=True) self.assertEqual(output.status_code, 200) output_text = output.get_data(as_text=True) - self.assertIn( - 'Time must be of type "HH:MM"', - output_text) + self.assertTrue( + 'Time must be of type &HH:MM"' in output_text + or + 'Time must be of type "HH:MM"' in output_text + ) # Start time should have integer data = { @@ -1488,9 +1490,11 @@ class Flasktests(Modeltests): follow_redirects=True) self.assertEqual(output.status_code, 200) output_text = output.get_data(as_text=True) - self.assertIn( - 'Time must be of type "HH:MM"', - output_text) + self.assertTrue( + 'Time must be of type &HH:MM"' in output_text + or + 'Time must be of type "HH:MM"' in output_text + ) # End date earlier than the start date data = {