mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
fix tests
This commit is contained in:
parent
6490184333
commit
1bf566401d
1 changed files with 5 additions and 0 deletions
|
@ -79,6 +79,10 @@ def patch_logging(moulinette):
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def patch_lock(moulinette):
|
||||||
|
moulinette.core.MoulinetteLock._lock = lambda *args: None
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session", autouse=True)
|
@pytest.fixture(scope="session", autouse=True)
|
||||||
def moulinette(tmp_path_factory):
|
def moulinette(tmp_path_factory):
|
||||||
import moulinette
|
import moulinette
|
||||||
|
@ -98,6 +102,7 @@ def moulinette(tmp_path_factory):
|
||||||
|
|
||||||
patch_init(moulinette)
|
patch_init(moulinette)
|
||||||
patch_translate(moulinette)
|
patch_translate(moulinette)
|
||||||
|
patch_lock(moulinette)
|
||||||
logging = patch_logging(moulinette)
|
logging = patch_logging(moulinette)
|
||||||
|
|
||||||
moulinette.init(logging_config=logging, _from_source=False)
|
moulinette.init(logging_config=logging, _from_source=False)
|
||||||
|
|
Loading…
Reference in a new issue