https://bugzilla.wikimedia.org/show_bug.cgi?id=69068
Bug ID: 69068 Summary: split test suite into tests which depend on a server, and those that do not Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
After a discussion with Legoktm and hashar about jenkins running tests on bug 50344 and IRC, the first step is to run tests which do not depend on a mediawiki site.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69068
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |69069
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- Running the scripts with -help should be possible without a working connection to the server, providing basic code coverage.
https://bugzilla.wikimedia.org/show_bug.cgi?id=69068
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |50344
https://bugzilla.wikimedia.org/show_bug.cgi?id=69068
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW CC| |hashar@free.fr
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- https://gerrit.wikimedia.org/r/#/c/151604/
https://bugzilla.wikimedia.org/show_bug.cgi?id=69068
Antoine "hashar" Musso hashar@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED Assignee|Pywikipedia-bugs@lists.wiki |jayvdb@gmail.com |media.org |
--- Comment #3 from Antoine "hashar" Musso hashar@free.fr --- The patch has been merged. Tests hitting sites have a 'site' attribute and the ones in need of network access a 'net' attribute.
For the record:
https://gerrit.wikimedia.org/r/#/c/151604/ brings all the attribute logic, adds 'site' and filter tests to not run them (nosetests -a '!site').
https://gerrit.wikimedia.org/r/#/c/152276/ flagged httplib tests with 'net' and have them filtered out.
Thank you John!
pywikipedia-bugs@lists.wikimedia.org