Page MenuHomePhabricator

Run test against an empty MediaWiki instance
Closed, DeclinedPublic


At Lyon we decided that before setting up automated testing against an empty test instance, we should first run the tests against a empty test instance set up on wmflabs. was created for this purpose, and the Pywikibot-test account was created on that instance with the standard password for that account.

Permission to create accounts is not enabled, to prevent spam. However this means that Travis builds not using the 'wikimedia' github account, and thus the Pywikibot-test wiki account, cant access the wiki. We will need to alter the test system to support the user tests only for the 'wikimedia' github account, possibly by detecting that a configured test username is not present on the wiki.

Event Timeline

jayvdb raised the priority of this task from to Medium.
jayvdb updated the task description. (Show Details)
jayvdb added projects: Pywikibot, Pywikibot-tests.
jayvdb added subscribers: jayvdb, Ladsgroup, Unknown Object (MLST).

Change 214816 had a related patch set uploaded (by John Vandenberg):
Do not ask for password if user doesnt exist

Three tests in page_tests fail, all because the main page only has one revision, and the tests assume the main page has more than one revision and only one contributor.

  • test_contributors
  • test_revision_count
  • test_revisions

(all are in )

Change 214816 merged by jenkins-bot:
Do not ask for password if user does not exist

If you create a mediawiki installation per test run as asked for in T58961 you can create page history and other stuff your tests rely on (i.e. a ) and be sure that they always are the same.

Xqt subscribed.

Same as for T58961.