jayvdb closed this task as "Resolved".
jayvdb claimed this task.
jayvdb added a comment.
This is basically done. While the test framework doesnt automatically fall back to using a different site (e.g. localhost), many tests are 'default site' tests which means they run against whatever site the developer selects using mylang & family in user-config.py , and that could be a mediawiki on localhost.
Setting up a local mediawiki to run tests against is https://phabricator.wikimedia.org/T58961.
TASK DETAIL
https://phabricator.wikimedia.org/T58963
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, Ladsgroup, valhallasw, jayvdb
jayvdb added a comment.
We could use a MediaWiki sqlite database. I am guessing (hoping) that mediawiki has a test runner which sets up a test instance of MediaWiki to run tests against. If so, we should try to use the MediaWiki test framework to set up the MediaWiki instance on localhost. If not, wtf, someone needs to build one of those.
However, I dont see anything like that; their .travis.yml only appears to set up an empty database instance without a http interface. @hashar , am I wrong there? Or do you know if someone is working on building a way for the MediaWiki tests to run live tests against the http frontend processor? For pywikibot needs, it would be sufficient if it only connected api.php to a port; we dont need to access index.php.
TASK DETAIL
https://phabricator.wikimedia.org/T58961
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, Ladsgroup, valhallasw, hashar, jayvdb
Unicodesnowman claimed this task.
Unicodesnowman removed a subscriber: Unknown Object (????).
Unicodesnowman added a project: pywikibot-core.
Unicodesnowman set Security to none.
TASK DETAIL
https://phabricator.wikimedia.org/T57255
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, Ladsgroup, Legoktm, jayvdb
jayvdb added a comment.
@valhallasw , can you check that file_tests.py does what you expect and we can close this task; see also question above..?
TASK DETAIL
https://phabricator.wikimedia.org/T72494
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, Multichill, Mpaa, jayvdb
Ricordisamoa created this task.
Ricordisamoa added subscribers: Aklapper, pywikipedia-bugs, Ricordisamoa.
Ricordisamoa added a project: Pywikibot-General.
Ricordisamoa changed Security from none to none.
TASK DESCRIPTION
Instead of having it hard-coded, as it is now as 'cross_allowed' attribute of Family classes.
See for example [[ //www.mediawiki.org/w/api.php?action=query&list=wikisets&wsprop=type&wslimit=1&wsprop=wikisincluded | this query ]].
TASK DETAIL
https://phabricator.wikimedia.org/T78395
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: Ricordisamoa
Cc: Aklapper, Ricordisamoa, pywikipedia-bugs