diff options
author | Vitiko <[email protected]> | 2023-03-10 18:12:37 -0400 |
---|---|---|
committer | Vitiko <[email protected]> | 2023-03-10 18:12:37 -0400 |
commit | 587af7d138f1b11e034c16a70b1032a8932cc59c (patch) | |
tree | 8afabad720a88b14e18fc7ca6d84ba087b41dc47 /tests/subliminal_patch | |
parent | dec2f7d4788d720ad9503220050ae83e7c6462e0 (diff) | |
download | bazarr-587af7d138f1b11e034c16a70b1032a8932cc59c.tar.gz bazarr-587af7d138f1b11e034c16a70b1032a8932cc59c.zip |
Supersubtitles provider: fix #2092v1.2.1-beta.1
Diffstat (limited to 'tests/subliminal_patch')
-rw-r--r-- | tests/subliminal_patch/test_supersubtitles.py | 25 |
1 files changed, 25 insertions, 0 deletions
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) |