jayvdb added a comment.
In https://phabricator.wikimedia.org/T60941#615460, @valhallasw wrote:
Looking at old patches, or checking existing tests in the tests/ subdirectory are indeed the best options. I don't think there's any pywikibot-specific documentation for writing unit tests, but the python unittest docs ( http://docs.python.org/2/library/unittest.html ) will probably be useful.
There is now pywikibot specific documentation for writing unit tests; best seen rendered at https://github.com/wikimedia/pywikibot-core/tree/master/tests#pywikibot-test...
I am using https://gerrit.wikimedia.org/r/#/c/178891 as an example of a nice simple addition of a unit test.
TASK DETAIL https://phabricator.wikimedia.org/T60941
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: pywikipedia-bugs, valhallasw, Ricordisamoa, jayvdb, Aklapper
pywikipedia-bugs@lists.wikimedia.org