feat: complete production workflow migration
This commit is contained in:
@@ -14,9 +14,9 @@ RUNTIME_ROOT = PROJECT_ROOT / "src" / "gyxx_flow" / "modules"
|
||||
|
||||
def _load_path_module(module: str, filename: str, monkeypatch, data_root: Path):
|
||||
monkeypatch.setenv("GYXX_DATA_ROOT", str(data_root))
|
||||
runtime_root = RUNTIME_ROOT / module / "runtime"
|
||||
monkeypatch.setenv("GYXX_MODULE_ROOT", str(runtime_root))
|
||||
path = runtime_root / filename
|
||||
module_root = RUNTIME_ROOT / module
|
||||
monkeypatch.setenv("GYXX_MODULE_ROOT", str(module_root))
|
||||
path = module_root / filename
|
||||
name = f"_gyxx_test_paths_{module}"
|
||||
spec = importlib.util.spec_from_file_location(name, path)
|
||||
assert spec and spec.loader
|
||||
@@ -128,9 +128,9 @@ def test_blank_data_root_uses_the_project_var_default(
|
||||
root_name: str,
|
||||
) -> None:
|
||||
monkeypatch.setenv("GYXX_DATA_ROOT", configured)
|
||||
runtime_root = RUNTIME_ROOT / module / "runtime"
|
||||
monkeypatch.setenv("GYXX_MODULE_ROOT", str(runtime_root))
|
||||
path = runtime_root / filename
|
||||
module_root = RUNTIME_ROOT / module
|
||||
monkeypatch.setenv("GYXX_MODULE_ROOT", str(module_root))
|
||||
path = module_root / filename
|
||||
name = f"_gyxx_test_blank_paths_{module}"
|
||||
spec = importlib.util.spec_from_file_location(name, path)
|
||||
assert spec and spec.loader
|
||||
|
||||
Reference in New Issue
Block a user