mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-22 19:53:17 +00:00
Fix test_video.py::test_video_Show_section
remove untrue comment
This commit is contained in:
parent
b995deab05
commit
b37e7fefeb
3 changed files with 9 additions and 8 deletions
|
@ -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."""
|
||||
|
|
|
@ -89,12 +89,13 @@ 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,
|
||||
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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue