summaryrefslogtreecommitdiffhomepage
path: root/tests/subliminal_patch
diff options
context:
space:
mode:
authorVitiko <[email protected]>2024-01-28 17:18:48 -0400
committerVitiko <[email protected]>2024-01-28 17:18:48 -0400
commitdeef13d11b9310384d71cb0a4af230a524541359 (patch)
tree4c20a15cc49acc3e4b6c7b019427ddddcc140dbb /tests/subliminal_patch
parentd758c53b412ab8bcd5927beba13ff5a56b266c17 (diff)
downloadbazarr-deef13d11b9310384d71cb0a4af230a524541359.tar.gz
bazarr-deef13d11b9310384d71cb0a4af230a524541359.zip
Add Argenteam Dump Provider
Diffstat (limited to 'tests/subliminal_patch')
-rw-r--r--tests/subliminal_patch/test_argenteam_dump.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/subliminal_patch/test_argenteam_dump.py b/tests/subliminal_patch/test_argenteam_dump.py
new file mode 100644
index 000000000..15b784510
--- /dev/null
+++ b/tests/subliminal_patch/test_argenteam_dump.py
@@ -0,0 +1,22 @@
+import pytest
+from subliminal_patch.providers.argenteamdump import ArgenteamDumpProvider
+from subzero.language import Language
+
+
+def test_list_subtitles_movies(movies):
+ languages = {Language("spa", "MX")}
+ with ArgenteamDumpProvider() as provider:
+ subtitles = provider.list_subtitles(movies["man_of_steel"], languages)
+ assert subtitles
+
+ provider.download_subtitle(subtitles[0])
+ assert subtitles[0].is_valid()
+
+def test_list_subtitles_episodes(episodes):
+ languages = {Language("spa", "MX")}
+ with ArgenteamDumpProvider() as provider:
+ subtitles = provider.list_subtitles(episodes["got_s03e10"], languages)
+ assert subtitles
+
+ provider.download_subtitle(subtitles[0])
+ assert subtitles[0].is_valid()