jayvdb created this task. jayvdb claimed this task. jayvdb added a subscriber: jayvdb. jayvdb added a project: Pywikibot-tests.
TASK DESCRIPTION aspects.py provides similar functionality to the package testscenarios. https://pypi.python.org/pypi/testscenarios
Features of aspects that are missing should be added to testscenarios, so that we could adopt it by essentially renaming TestCase.sites to TestCase,scenarios , plus any parts of aspects that may not be able to be easily generalised.
TASK DETAIL https://phabricator.wikimedia.org/T85899
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb moved this task to Framework on the Pywikibot-tests workboard.
TASK DETAIL https://phabricator.wikimedia.org/T85899
WORKBOARD https://phabricator.wikimedia.org/project/board/107/
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a comment.
It depends on testtools, which depends on unittest2 v1.0, which conflicts with the version of unittest2 that our travis builds use for py2.6: v0.8
v0.4 which is released on pypi (but not on launchpad) works on py3. However some of the tests fail, but those failures are problems in the tests only. I've put forward a patch for the tests. https://code.launchpad.net/testscenarios .
There is a patch which adds a nice decorator `@with_scenarios` , however it is based on v0.3 which isnt py3 compatible: https://code.launchpad.net/~julian+/testscenarios/testscenarios
TASK DETAIL https://phabricator.wikimedia.org/T85899
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: jayvdb, Aklapper, pywikipedia-bugs
jayvdb edited the task description. jayvdb set Security to None.
TASK DETAIL https://phabricator.wikimedia.org/T85899
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: jayvdb, Aklapper, pywikipedia-bugs
XZise added a subscriber: XZise. XZise added a comment.
Note that we locked to unittest2 0.8 in https://phabricator.wikimedia.org/rPWBCf903c8c83d032abe309d8535195c2d6165263... because of some dependency which is afaik (https://phabricator.wikimedia.org/T92277#1188073) not present anymore so we might be able to use unittest2 1.0.
TASK DETAIL https://phabricator.wikimedia.org/T85899
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, XZise Cc: XZise, jayvdb, Aklapper, pywikipedia-bugs
jayvdb added a comment.
A working example of testscenarios on travis, using `@with_scenarios`.
https://travis-ci.org/jayvdb/anyhttp
I needed to download the tarball for testscenarios, as travis doesnt have bzr and installing it fails on travis py3 instances.
TASK DETAIL https://phabricator.wikimedia.org/T85899
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: XZise, jayvdb, Aklapper, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org