Last modified: 2014-10-12 03:31:26 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 T62214, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60214 - aggressive caching in test suite causes testImageusage in site_tests to fail
aggressive caching in test suite causes testImageusage in site_tests to fail
Status: NEW
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-18 23:44 UTC by Mpaa
Modified: 2014-10-12 03:31 UTC (History)
2 users (show)

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


Attachments

Description Mpaa 2014-01-18 23:44:08 UTC
Line 549 in site_tests.py fails:
    for using in mysite.imageusage(imagepage, namespaces=[3, 4], total=5):
            self.assertType(using, pywikibot.Page)
            self.assertTrue(imagepage in list(using.imagelinks()))  --> fails

imagepage on main page (current 'Main Page' on ew:WP) is different from images in list(using.imagelinks()), in cached data in c:\\users\\...\\AppData\\Roaming\\pywikibot\\apicache\\ff322b...

Cached data is used due to monkey patching in tests/__init__.py
Comment 1 John Mark Vandenberg 2014-10-12 03:31:26 UTC
Retitling as we now have a different failure regularly occurring in the same test - bug 71971

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


Navigation
Links