From 582c2d9b3c373b531047bda4fbf4267a7f2b2942 Mon Sep 17 00:00:00 2001 From: Vitiko Date: Thu, 6 Oct 2022 16:40:45 -0400 Subject: [PATCH] no log: update conftest.py --- tests/subliminal_patch/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/subliminal_patch/conftest.py b/tests/subliminal_patch/conftest.py index d60a807aa..7f72a4814 100644 --- a/tests/subliminal_patch/conftest.py +++ b/tests/subliminal_patch/conftest.py @@ -6,6 +6,7 @@ import os import pytest from subliminal_patch.core import Movie, Episode +from subzero.language import Language logging.getLogger("vcr").setLevel(logging.WARNING) @@ -148,6 +149,11 @@ def episodes(): } +@pytest.fixture +def languages(): + return {"en": Language.fromietf("en"), "es-MX": Language("spa", "MX")} + + @pytest.fixture def data(): return os.path.join(os.path.abspath(os.path.dirname(__file__)), "data")