jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/460319 )
Change subject: tests/http_tests.py: Fix unittest.skipTest calls ......................................................................
tests/http_tests.py: Fix unittest.skipTest calls
'unittest.skipTest' does not exist. Replace it with `self.skipTest`.
Bug: T204204 Change-Id: I6a4e55cc2e38a0ba26d9e881c125e9feaee6b326 --- M tests/http_tests.py 1 file changed, 6 insertions(+), 6 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/http_tests.py b/tests/http_tests.py index 5125eec..2264e2b 100644 --- a/tests/http_tests.py +++ b/tests/http_tests.py @@ -652,8 +652,8 @@ """Test fetch method with no parameters.""" r = http.fetch(uri=self.url, params={}) if r.status == 503: # T203637 - unittest.skipTest('503: Service currently not available for ' - + self.url) + self.skipTest( + '503: Service currently not available for ' + self.url) self.assertEqual(r.status, 200)
content = json.loads(r.text) @@ -668,8 +668,8 @@ """ r = http.fetch(uri=self.url, params={'fish&chips': 'delicious'}) if r.status == 503: # T203637 - unittest.skipTest('503: Service currently not available for ' - + self.url) + self.skipTest( + '503: Service currently not available for ' + self.url) self.assertEqual(r.status, 200)
content = json.loads(r.text) @@ -684,8 +684,8 @@ """ r = http.fetch(uri=self.url, params={'fish%26chips': 'delicious'}) if r.status == 503: # T203637 - unittest.skipTest('503: Service currently not available for ' - + self.url) + self.skipTest( + '503: Service currently not available for ' + self.url) self.assertEqual(r.status, 200)
content = json.loads(r.text)