mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
We don't need to add .. to pythonpath during tests?
This commit is contained in:
parent
fc07abf871
commit
0a21be694c
1 changed files with 1 additions and 3 deletions
|
@ -1,14 +1,11 @@
|
||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
import sys
|
|
||||||
|
|
||||||
import moulinette
|
import moulinette
|
||||||
from moulinette import m18n, Moulinette
|
from moulinette import m18n, Moulinette
|
||||||
from yunohost.utils.error import YunohostError
|
from yunohost.utils.error import YunohostError
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
sys.path.append("..")
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session", autouse=True)
|
@pytest.fixture(scope="session", autouse=True)
|
||||||
def clone_test_app(request):
|
def clone_test_app(request):
|
||||||
|
@ -77,6 +74,7 @@ moulinette.core.Moulinette18n.n = new_m18nn
|
||||||
|
|
||||||
def pytest_cmdline_main(config):
|
def pytest_cmdline_main(config):
|
||||||
|
|
||||||
|
import sys
|
||||||
sys.path.insert(0, "/usr/lib/moulinette/")
|
sys.path.insert(0, "/usr/lib/moulinette/")
|
||||||
import yunohost
|
import yunohost
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue