mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-21 15:31:00 +00:00
Fix conftest
This commit is contained in:
parent
106594f970
commit
443ae19832
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue