jayvdb created this task.
jayvdb added subscribers: pywikipedia-bugs, jayvdb.
jayvdb added projects: pywikibot-core, easy, Pywikibot-tests.
jayvdb changed Security from none to none.
TASK DESCRIPTION
The Category class has only a limited number of unit test cases.
The primary set of tests are in
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/c731cdb7b58adaf0f42c86bb…
However a few other related tests are located in other test modules.
The tests in page_tests should be moved to a new test module category_tests.py , and new basic tests added for at least the methods and attributes
* sortKey
* categoryinfo
* members
* subcategories
* articles
(Methods copyTo and copyAndKeep are likely to be removed in the near future, and are essentially currently unsupported cruft)
TASK DETAIL
https://phabricator.wikimedia.org/T78231
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
Unicodesnowman closed blocking task T78231: Category methods members, subcategories and articles do not have unit tests as "Resolved".
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: Unicodesnowman
Cc: pywikipedia-bugs, valhallasw, Ricordisamoa, jayvdb, Aklapper
Xqt added a comment.
The code has never been finished. I established it years ago to merge pt and de behaviors for review of blocked users. Maybe we could just move it to pywikibot/bots/xqbot repository when we had it.
TASK DETAIL
https://phabricator.wikimedia.org/T66832
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: Xqt
Cc: pywikipedia-bugs, valhallasw, jayvdb, droid
jayvdb reopened this task as "Open".
jayvdb added a subscriber: jayvdb.
jayvdb added a comment.
The port was not completed before it was checked in. And I suspect the code in compat has serious bugs which should have been resolved before or during the port.
TASK DETAIL
https://phabricator.wikimedia.org/T66832
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: Xqt, jayvdb
Cc: pywikipedia-bugs, valhallasw, jayvdb
jayvdb created this task.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-tests.
jayvdb changed Security from none to none.
TASK DESCRIPTION
Travis switch to Python 2.7.9 with this build:
https://travis-ci.org/wikimedia/pywikibot-core/builds/44257179
The two 2.7 setup.py , not SITE_ONLY, builds failed with this error:
```
ERROR: test_https_cert_error (tests.http_tests.HttpsCertificateTestCase)
Test http.request fails on invalid omegawiki SSL certificate.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/build/wikimedia/pywikibot-core/tests/http_tests.py", line 104, in test_https_cert_error
uri='https://www.omegawiki.org/')
File "/opt/python/2.7.9/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/tools.py", line 679, in wrapper
return obj(*__args, **__kw)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 233, in request
r = fetch(uri, *args, **kwargs)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 351, in fetch
error_handling_callback(request)
File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/comms/http.py", line 268, in error_handling_callback
raise request.data
SSLHandshakeError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
```
TASK DETAIL
https://phabricator.wikimedia.org/T78764
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