mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-23 16:31:03 +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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue