Commit 9b8d98fb authored by Jérome Perrin's avatar Jérome Perrin

test_check_url_available: adjust expected message for requests 2.28.2

parent 2db8fcf1
...@@ -313,9 +313,11 @@ class TestCheckUrlAvailable(CheckUrlAvailableMixin): ...@@ -313,9 +313,11 @@ class TestCheckUrlAvailable(CheckUrlAvailableMixin):
self.launcher.run() self.launcher.run()
result = self.getPromiseResult(self.promise_name) result = self.getPromiseResult(self.promise_name)
self.assertEqual(result['result']['failed'], True) self.assertEqual(result['result']['failed'], True)
self.assertEqual( self.assertIn(
result['result']['message'], result['result']['message'],
"ERROR: Invalid URL '': No scheme supplied. Perhaps you meant http://?" ("ERROR: Invalid URL '': No scheme supplied. Perhaps you meant https://?",
# BBB requests < 2.28.2
"ERROR: Invalid URL '': No scheme supplied. Perhaps you meant http://?")
) )
def test_check_url_site_off(self): def test_check_url_site_off(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment