🔧 Copied self hosted docker apps
This commit is contained in:
parent
36943e27da
commit
abc55d8ed5
209 changed files with 58596 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
from libretranslate.app import create_app
|
||||
from libretranslate.main import get_args
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def app():
|
||||
sys.argv = ['', '--load-only', 'en,es']
|
||||
app = create_app(get_args())
|
||||
|
||||
yield app
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def client(app):
|
||||
return app.test_client()
|
||||
Loading…
Add table
Add a link
Reference in a new issue