Fix test_video.py::test_video_Show_section

remove untrue comment
This commit is contained in:
Hellowlol 2017-02-11 00:32:51 +01:00
parent b995deab05
commit b37e7fefeb
3 changed files with 9 additions and 8 deletions

View file

@ -186,7 +186,7 @@ class LibrarySection(PlexObject):
self.uuid = data.attrib.get('uuid')
def __repr__(self):
return '<%s>' % ':'.join([p for p in [self.__class__.__name__, self.key, self.librarySectionTitle] if p])
return '<%s>' % ':'.join([p for p in [self.__class__.__name__, self.key, self.title] if p])
def delete(self):
"""Delete a library section."""

View file

@ -89,13 +89,14 @@ def test_utils_cast():
def test_utils_download(a_episode):
# this files is really getting downloaded..
without_session = utils.download(a_episode.getStreamURL(),
filename=a_episode.location, mocked=True)
filename=a_episode.location,
mocked=True)
assert without_session
with_session = utils.download(a_episode.getStreamURL(),
filename=a_episode.location, session=a_episode._server._session,
mocked=True)
filename=a_episode.location,
session=a_episode._server._session,
mocked=True)
assert with_session
img = utils.download(a_episode.thumbUrl, filename=a_episode.title, mocked=True)
assert img

View file

@ -369,9 +369,9 @@ def test_video_Show_isWatched(a_show):
assert not a_show.isWatched
@pytest.mark.xfail
def test_video_Show_section(a_show): # BROKEN!
show = a_show.section()
def test_video_Show_section(a_show):
section = a_show.section()
assert section.title == 'TV Shows'
def test_video_Episode(a_show):