https://bugzilla.wikimedia.org/show_bug.cgi?id=68671
Bug ID: 68671 Summary: test duration [tracking] Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: major Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
The following tests take longer than 10s on travis-ci for the enwp py2.7 build
testQueryApiGetter (tests.wikidataquery_tests.TestApiSlowFunctions) ... 10.522s ok ... testLinkMethods (tests.site_tests.TestSiteObject) Test site methods for getting links to and from a page ... Retrieving 5 pages from wikipedia:en. 344.035s ok ... testWebCiteOlder (tests.weblib_tests.TestArchiveSites) ... 16.051s ok ... testLinks (tests.page_tests.TestPageObject) ... 15.409s ok ...
https://travis-ci.org/wikimedia/pywikibot-core/jobs/30944822
testLinkMethods is the worst, and many parts of it do not depend on the initialisation at the beginning of the method.