We don't need to add .. to pythonpath during tests?

This commit is contained in:
Alexandre Aubin 2021-09-13 22:35:38 +02:00
parent fc07abf871
commit 0a21be694c

View file

@ -1,14 +1,11 @@
import os
import pytest
import sys
import moulinette
from moulinette import m18n, Moulinette
from yunohost.utils.error import YunohostError
from contextlib import contextmanager
sys.path.append("..")
@pytest.fixture(scope="session", autouse=True)
def clone_test_app(request):
@ -77,6 +74,7 @@ moulinette.core.Moulinette18n.n = new_m18nn
def pytest_cmdline_main(config):
import sys
sys.path.insert(0, "/usr/lib/moulinette/")
import yunohost