https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
Web browser: --- Bug ID: 56959 Summary: Tests: allow for offline operation Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Classification: Unclassified Mobile Platform: ---
https://integration.wikimedia.org/ci/job/pywikibot-core-tests/186/consoleFul... failed due to a lack of network connectivity. It would be great to first do a quick check if enwiki is online/accessible, and if not, to skip all network-requiring tests.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com
https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 154469 had a related patch set uploaded by John Vandenberg: Test metaclass
https://gerrit.wikimedia.org/r/154469
https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- With change 154469, the loading of each site is moved into setUpClass. Additional code will be needed to nicely skip the tests if the site couldnt be contacted, however that needs to be another changeset as the API is very unfriendly for this, as it wants to retry the connection many (12?) times by default before giving up.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 154469 merged by XZise: Test metaclass
https://gerrit.wikimedia.org/r/154469
https://bugzilla.wikimedia.org/show_bug.cgi?id=56959
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |NEW
pywikipedia-bugs@lists.wikimedia.org