test(pm): copy the activation library into the real-setup activation fixture
`activate` now sources scripts/_activation.sh, and this fixture assembles its own checkout from a fixed file list that did not include it, so `activate` reported "setup failed" before running setup.
This commit is contained in:
@@ -60,7 +60,9 @@ def test_activation_real_setup_pm_lifecycle(tmp_path, served):
|
||||
"LANG": "C.UTF-8", "PYTHONNOUSERSITE": "1", "UV_OFFLINE": "1",
|
||||
"UV_CACHE_DIR": str(home / ".cache" / "uv"), "UV_PYTHON_DOWNLOADS": "never",
|
||||
}
|
||||
for name in ("activate", "setup-hermes.sh", "hermes_constants.py", "hermes_yaml.py", "utils.py"):
|
||||
for name in ("activate", "setup-hermes.sh", "hermes_constants.py", "hermes_yaml.py", "utils.py",
|
||||
"scripts/_activation.sh"):
|
||||
(core / name).parent.mkdir(parents=True, exist_ok=True)
|
||||
shutil.copy2(REPO / name, core / name)
|
||||
for name in ("pm", "hermes_cli"):
|
||||
shutil.copytree(REPO / name, core / name, ignore=shutil.ignore_patterns("__pycache__"))
|
||||
|
||||
Reference in New Issue
Block a user