jenkins-bot has submitted this change and it was merged.
Change subject: Check Internet Archive API URL is available ......................................................................
Check Internet Archive API URL is available
The Internet Archive API responds with status code 503 when it is unavailable. The tests should not be run when it is unavailable.
Re-enable Internet Archive tests.
Bug: T104761 Change-Id: I4f550efa380db41a4e489c4821b2400c70ada369 --- M tests/__init__.py M tests/weblib_tests.py 2 files changed, 4 insertions(+), 4 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/__init__.py b/tests/__init__.py index 4416e05..631b7ce 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -141,10 +141,7 @@
disabled_test_modules = [ 'tests', # tests of the tests package - # weblib is deprecated, the tests fail for weblib, - # but the tests are run in weblinkchecker_tests. 'l10n', - 'weblib', ] if not i18n.messages_available(): disabled_test_modules.append('l10n') @@ -156,6 +153,9 @@ 'site_detect': [ 'test_IWM', # very slow and tests include unnecessary sites ], + 'weblib': [ + 'testWebCiteOlder', # fails. T110640 + ], }
diff --git a/tests/weblib_tests.py b/tests/weblib_tests.py index 769080c..13c5a13 100644 --- a/tests/weblib_tests.py +++ b/tests/weblib_tests.py @@ -28,7 +28,7 @@
sites = { 'archive.org': { - 'hostname': 'web.archive.org', + 'hostname': 'https://archive.org/wayback/available?url=invalid', }, }