Last modified: 2014-07-24 18:15:25 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 T70348, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68348 - pywikibot-wiktionary tests are generally failing
pywikibot-wiktionary tests are generally failing
Status: NEW
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-21 22:34 UTC by Kunal Mehta (Legoktm)
Modified: 2014-07-24 18:15 UTC (History)
1 user (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2014-07-21 22:34:50 UTC
$ ./testall.sh 
...F
======================================================================
FAIL: testReprSanity (__main__.KnownValues)
Header __repr__, __eq__, __ne__ should give sane results
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./headertest.py", line 52, in testReprSanity
    self.assertNotEqual(h, header.Header())
AssertionError: header.Header(contents='en', header='english', level=2, type='lang') == <header.Header object at 0x10fcbcb90>

----------------------------------------------------------------------
Ran 4 tests in 0.001s

FAILED (failures=1)
This line doesn't seem to contain an indication of the language: *Russian: [[шесток]] ''m'' (shestok)
E
======================================================================
ERROR: testParser (__main__.KnownValues)
self.term, self.gender, self.number, self.diminutive and remark
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./meaningtest.py", line 58, in testParser
    termlang]['alltrans'][i]['trans']
KeyError: 'ru'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)
.FFF
======================================================================
FAIL: testTermKnownValuesWikiWrapAsExample (__main__.KnownValues)
WikiWrap output correct for a term used as an example
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./termtest.py", line 31, in testTermKnownValuesWikiWrapAsExample
    self.assertEqual(asexample, result)
AssertionError: "'''example'''" != u"'''en'''"

======================================================================
FAIL: testTermKnownValuesWikiWrapAsTranslation (__main__.KnownValues)
WikiWrap output correct for a term when used as a translation
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./termtest.py", line 53, in testTermKnownValuesWikiWrapAsTranslation
    self.assertEqual(forlist, result)
AssertionError: '[[example]]' != '[[en]]'

======================================================================
FAIL: testTermKnownValuesWikiWrapForList (__main__.KnownValues)
WikiWrap output correct for a term when used in a list
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./termtest.py", line 42, in testTermKnownValuesWikiWrapForList
    self.assertEqual(forlist, result)
AssertionError: '[[example]]' != '[[en]]'

----------------------------------------------------------------------
Ran 4 tests in 0.001s

FAILED (failures=3)
.number of meanings: 1
number of meanings: 1
number of meanings: 1
number of meanings: 1
number of meanings: 1
E
======================================================================
ERROR: testWhetherTranslationsAreParsedProperly (__main__.TestKnownValuesInParser)
Test whether translations are parsed properly
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./wiktionarypagetest.py", line 509, in testWhetherTranslationsAreParsedProperly
    apage.parseWikiPage(value['wikiformat'])
  File "/Users/km/projects/pywikibot-wiktionary/wiktionarypage.py", line 441, in parseWikiPage
    winner.parseTranslations(line)
AttributeError: 'bool' object has no attribute 'parseTranslations'

----------------------------------------------------------------------
Ran 2 tests in 0.072s

FAILED (errors=1)

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


Navigation
Links