Coverage improvement on the backend.
This commit is contained in:
parent
ca0db5e400
commit
0006b52c19
1 changed files with 6 additions and 0 deletions
|
|
@ -35,3 +35,9 @@ class TvsubtitlesTest(BackendTest):
|
|||
if len(subtitles):
|
||||
subtitle = choice(subtitles)
|
||||
self.backend.get_subtitle_file(subtitle.id)
|
||||
|
||||
def test_get_subtitle(self):
|
||||
subtitles = list(self.backend.iter_subtitles('fr', 'sopranos'))
|
||||
assert (len(subtitles) > 0)
|
||||
subtitle = choice(subtitles)
|
||||
assert self.backend.get_subtitle(subtitle.id)
|
||||
Loading…
Add table
Add a link
Reference in a new issue