From 443ae198322eb27488055d8bc9da9d9108e324cc Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sat, 21 Sep 2024 12:17:25 -0400 Subject: [PATCH] Fix conftest --- libretranslate/tests/test_api/conftest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libretranslate/tests/test_api/conftest.py b/libretranslate/tests/test_api/conftest.py index a1db034..3d7640f 100644 --- a/libretranslate/tests/test_api/conftest.py +++ b/libretranslate/tests/test_api/conftest.py @@ -3,14 +3,12 @@ import sys import pytest from libretranslate.app import create_app -from libretranslate.default_values import DEFAULT_ARGUMENTS from libretranslate.main import get_args @pytest.fixture() def app(): - sys.argv = [''] - DEFAULT_ARGUMENTS['LOAD_ONLY'] = "en,es" + sys.argv = ['', '--load-only', 'en,es'] app = create_app(get_args()) yield app