Skip to content
Snippets Groups Projects

Avoid the need to setup the resolver at Manager instantiation, thereby...

All threads resolved!
Files
5
@@ -3,6 +3,7 @@ import shutil
import pytest
from cmmnbuild_dep_manager.cmmnbuild_dep_manager import PKG_MODULES_JSON
import cmmnbuild_dep_manager
TMP_PKG_MODULES_JSON = (
@@ -41,3 +42,13 @@ def autoclean_modules_json():
TMP_PKG_MODULES_JSON.rename(PKG_MODULES_JSON)
if TMP_LIB_DIR.exists():
TMP_LIB_DIR.rename(LIB_DIR)
@pytest.fixture
def cleaned_modules():
# Clear the modules.json before and after the test
if PKG_MODULES_JSON.exists():
PKG_MODULES_JSON.unlink()
yield
if PKG_MODULES_JSON.exists():
PKG_MODULES_JSON.unlink()
Loading