https://bugzilla.wikimedia.org/show_bug.cgi?id=56960
Web browser: --- Bug ID: 56960 Summary: Tests: allow for logged-out 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: ---
Currently, tests require the user to be logged in. It would be good to be able to run tests without requiring that -- for example, the unit tests in jenkins do not have a password available and thus cannot run completely.
Tests that should be skipped can be seen at https://integration.wikimedia.org/ci/job/pywikibot-core-tests/185/consoleFul...
https://bugzilla.wikimedia.org/show_bug.cgi?id=56960
pyfisch@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pyfisch@googlemail.com
--- Comment #1 from pyfisch@googlemail.com --- It would also be great if fetching functions would work without logging in in General.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56960
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com
https://bugzilla.wikimedia.org/show_bug.cgi?id=56960
--- Comment #2 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=56960
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=56960
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- This request was mostly completed in https://gerrit.wikimedia.org/r/#/c/151604/ .
https://gerrit.wikimedia.org/r/154469 provides all the functionality, and marks some tests as needing a 'user', but some are not yet marked as needing a 'user' as some test classes need to be split so the tests which need a user are separated from the other tests which can run without a user.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56960
--- Comment #4 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=56960
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |NEW
pywikipedia-bugs@lists.wikimedia.org