Fix conftest

This commit is contained in:
Piero Toffanin 2024-09-21 12:17:25 -04:00
parent 106594f970
commit 443ae19832

View file

@ -3,14 +3,12 @@ import sys
import pytest import pytest
from libretranslate.app import create_app from libretranslate.app import create_app
from libretranslate.default_values import DEFAULT_ARGUMENTS
from libretranslate.main import get_args from libretranslate.main import get_args
@pytest.fixture() @pytest.fixture()
def app(): def app():
sys.argv = [''] sys.argv = ['', '--load-only', 'en,es']
DEFAULT_ARGUMENTS['LOAD_ONLY'] = "en,es"
app = create_app(get_args()) app = create_app(get_args())
yield app yield app