Page MenuHomePhabricator

wikistats_tests are failing
Closed, ResolvedPublicBUG REPORT

Description

https://travis-ci.org/wikimedia/pywikibot/jobs/568529002

=================================== FAILURES ===================================
__________________________ WikiStatsTestCase.test_csv __________________________
self = <tests.wikistats_tests.WikiStatsTestCase testMethod=test_csv>
    def test_csv(self):
        """Test CSV."""
        if not csv:
            self.skipTest('unicodecsv not installed.')
        ws = WikiStats()
        data = ws.get_dict('wikipedia', 'csv')
        self.assertIsInstance(data, dict)
>       self.assertIn('en', data)
E       AssertionError: u'en' not found in {}
tests/wikistats_tests.py:70: AssertionError
_________________________ WikiStatsTestCase.test_sort __________________________
self = <tests.wikistats_tests.WikiStatsTestCase testMethod=test_sort>
    def test_sort(self):
        """Test sorted results."""
        ws = WikiStats()
        data = ws.sorted('wikipedia', 'total')
>       top = data[0]
E       IndexError: list index out of range
tests/wikistats_tests.py:28: IndexError
__________________________ WikiStatsTestCase.test_xml __________________________
self = <tests.wikistats_tests.WikiStatsTestCase testMethod=test_xml>
    def test_xml(self):
        """Test XML."""
        ws = WikiStats()
        data = ws.get_dict('wikisource', 'xml')
        self.assertIsInstance(data, dict)
>       self.assertIn('en', data)
E       AssertionError: u'en' not found in {}
tests/wikistats_tests.py:86: AssertionError

Event Timeline

Xqt created this task.Aug 8 2019, 4:35 PM
Restricted Application added a project: Pywikibot. · View Herald TranscriptAug 8 2019, 4:35 PM
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Aug 8 2019, 4:35 PM
Xqt added a project: Upstream.
Xqt changed the subtype of this task from "Task" to "Bug Report".
Dzahn added a comment.Aug 10 2019, 9:58 PM

Please try again now. wikistats site is back now.

Xqt closed this task as Resolved.Aug 10 2019, 11:31 PM
Xqt claimed this task.

Solved upstream. Thanks a lot.

Xqt removed Xqt as the assignee of this task.Aug 10 2019, 11:31 PM