From 587af7d138f1b11e034c16a70b1032a8932cc59c Mon Sep 17 00:00:00 2001 From: Vitiko Date: Fri, 10 Mar 2023 18:12:37 -0400 Subject: Supersubtitles provider: fix #2092 --- tests/subliminal_patch/test_supersubtitles.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/subliminal_patch') diff --git a/tests/subliminal_patch/test_supersubtitles.py b/tests/subliminal_patch/test_supersubtitles.py index 3794a04ca..00d118264 100644 --- a/tests/subliminal_patch/test_supersubtitles.py +++ b/tests/subliminal_patch/test_supersubtitles.py @@ -105,3 +105,28 @@ def test_download_movie_subtitle(movies): with SuperSubtitlesProvider() as provider: provider.download_subtitle(subtitle) assert subtitle.is_valid() + + +def test_subtitle_reprs(movies): + subtitle = SuperSubtitlesSubtitle( + Language.fromalpha2("en"), + "https://www.feliratok.eu/index.php?action=letolt&felirat=1634579718", + 1634579718, + "Dune", + 0, + 0, + "", + [ + "NF.WEB-DL.1080p-TEPES", + "NF.WEBRip.1080p-TEPES", + "WEBRip-ION10", + "WEBRip-ION265", + "WEBRip.1080p-RARBG", + ], + "", + "", + "", + asked_for_episode=None, + ) + assert isinstance(subtitle.__repr__(), str) + assert isinstance(subtitle.__str__(), str) -- cgit v1.2.3