Skip to content

Commit

Permalink
fix test_download_best_subtitles_only_one
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Oct 2, 2024
1 parent cec82a4 commit 0bab1d2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/providers/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,16 @@ def test_download_best_subtitles_only_one(episodes):
video = episodes['bbt_s07e05']
languages = {Language('eng'), Language('por', 'BR')}
providers = ['gestdown', 'podnapisi']
# expected_subtitles = {('gestdown', 'a295515c-a460-44ea-9ba8-8d37bcb9b5a6')}
expected_subtitles = {('podnapisi', 'EdQo')}
expected_subtitles = {
('gestdown', 'a295515c-a460-44ea-9ba8-8d37bcb9b5a6'),
('podnapisi', 'EdQo'),
}

subtitles = download_best_subtitles({video}, languages, only_one=True, providers=providers)

assert len(subtitles) == 1
assert len(subtitles[video]) == 1
assert {(s.provider_name, s.id) for s in subtitles[video]} == expected_subtitles
assert {(s.provider_name, s.id) for s in subtitles[video]} in expected_subtitles


@pytest.mark.integration()
Expand Down

0 comments on commit 0bab1d2

Please sign in to comment.