diff --git a/tests/providers/test_providers.py b/tests/providers/test_providers.py index 78b87070..82194bac 100644 --- a/tests/providers/test_providers.py +++ b/tests/providers/test_providers.py @@ -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()