jayvdb created this task.
jayvdb added a project: Pywikibot-tests.
Herald added a subscriber: Zppix.

TASK DESCRIPTION

Enabling warnings shows pytest is trying to collect TestDateMeta, and failing. We should configure pytest so it doesnt attempt to collect it, or rename the class so pytest doesnt try to collect it.

And we should also enable pytest warnings in the CI tools

py.test-3.5 -vvvv -r w tests/date_tests.py

...

============================ pytest-warning summary =====================
WC1 /home/jayvdb/projects/pywiki/core/tests/date_tests.py cannot collect test class 'TestDateMeta' because it has a __init__ constructor
================ 45 passed, 1 pytest-warnings in 22.17 seconds =================

The following also have meta classes, and may have the same problem:
l10n_tests.py
logentry_tests.py
plural_tests.py
script_tests.py
tools_tests.py


TASK DETAIL
https://phabricator.wikimedia.org/T139156

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: Zppix, XZise, pywikibot-bugs-list, Aklapper, zhuyifei1999, AbdealiJK, gerritbot, jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to