Last modified: 2013-11-12 16:28:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47280, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45280 - Don't use API calls for login and token generation in API unit tests.
Don't use API calls for login and token generation in API unit tests.
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-22 13:42 UTC by Daniel Kinzler
Modified: 2013-11-12 16:28 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2013-02-22 13:42:13 UTC
Current unit tests for API modules use API calls to perform logins and token generation. That is quite slow, and unnecessary except for the tests for login and token generation itself.

Bypassing the API for these things should greatly improve the speed of API tests.
Comment 1 Addshore 2013-11-04 15:14:06 UTC
This no longer happens.

We now use the same user hack as in core and the doRequestWithToken method

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links