Skip to content
Snippets Groups Projects

WIP: Java imports tracing

9 files
+ 333
45
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -4,11 +4,9 @@ import pytest
from cmmnbuild_dep_manager.cmmnbuild_dep_manager import PKG_MODULES_JSON
TMP_PKG_MODULES_JSON = (
PKG_MODULES_JSON.parent / ("_test_" + PKG_MODULES_JSON.name))
TMP_PKG_MODULES_JSON = (PKG_MODULES_JSON.parent / ("_test_" + PKG_MODULES_JSON.name))
LIB_DIR = PKG_MODULES_JSON.parent / 'lib'
TMP_LIB_DIR = PKG_MODULES_JSON.parent / '_test_lib'
TMP_LIB_DIR = PKG_MODULES_JSON.parent / '_test_lib_'
@pytest.fixture(autouse=True, scope="session")
@@ -33,8 +31,10 @@ def autoclean_modules_json():
try:
yield
finally:
shutil.rmtree(LIB_DIR)
PKG_MODULES_JSON.unlink()
if LIB_DIR.exists():
shutil.rmtree(LIB_DIR)
if PKG_MODULES_JSON.exists():
PKG_MODULES_JSON.unlink()
if TMP_PKG_MODULES_JSON.exists():
TMP_PKG_MODULES_JSON.rename(PKG_MODULES_JSON)
if TMP_LIB_DIR.exists():
Loading