failed tests
thezoggy opened this issue · 2 comments
thezoggy commented
need to see if this has been resolved in latest git, currently using 1.9
======================================================================
ERROR: test_search_checkname (test_tvdb_api.test_tvdb_search)
Checks you can get the episode name of a search result
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program Files (x86)\Sick-Beard--dev\lib\tvdb_api\tests\test_tvdb_api.py", line 153, in test_search_checkname
self.assertEquals(self.t['My Name Is Earl'].search('Faked His Own Death')[0]['episodename'], 'Faked His Own Death')
IndexError: list index out of range
======================================================================
FAIL: test_spaces (test_tvdb_api.test_tvdb_basic)
Checks shownames with spaces
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program Files (x86)\Sick-Beard--dev\lib\tvdb_api\tests\test_tvdb_api.py", line 43, in test_spaces
self.assertEquals(self.t['My Name Is Earl'][1][4]['episodename'], 'Faked His Own Death')
AssertionError: u'Faked My Own Death' != 'Faked His Own Death'
======================================================================
FAIL: test_search_len (test_tvdb_api.test_tvdb_search)
There should be only one result matching
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program Files (x86)\Sick-Beard--dev\lib\tvdb_api\tests\test_tvdb_api.py", line 147, in test_search_len
self.assertEquals(len(self.t['My Name Is Earl'].search('Faked His Own Death')), 1)
AssertionError: 0 != 1
======================================================================
FAIL: test_spaces_from_zip (test_tvdb_api.test_tvdb_zip)
Checks shownames with spaces
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Program Files (x86)\Sick-Beard--dev\lib\tvdb_api\tests\test_tvdb_api.py", line 509, in test_spaces_from_zip
self.assertEquals(self.t['My Name Is Earl'][1][4]['episodename'], 'Faked His Own Death')
AssertionError: u'Faked My Own Death' != 'Faked His Own Death'
----------------------------------------------------------------------
Ran 47 tests in 13.883s
FAILED (failures=3, errors=1)
thezoggy commented
still on 1.9:
>>> import tvdb_api
>>> t = tvdb_api.Tvdb()
>>> t['My Name Is Earl'][1][4]['episodename']
u'Faked My Own Death'
>>> t['My Name Is Earl'].search('Faked His Own Death')
[]
>>> t['My Name Is Earl']
<Show My Name Is Earl (containing 5 seasons)>
>>> t['My Name Is Earl'].search(u'Faked His Own Death')
[]
>>> t['My Name Is Earl'].search(u'Faked')
[<Episode 01x04 - Faked My Own Death>]
thezoggy commented
tried latest git, same issues.