activity-core/tests/test_runtime_paths.py
tegwick 70e3154b05
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 9s
Build and Publish Container Image / build-and-push (push) Successful in 2m58s
feat: Phase 5 stabilization schedules and custodian path URIs
Add phase5_stabilization_check State Hub resolver with progress evidence
sinks, schedule projections for daily and closeout checks, custodian:// and
activity-core:// runtime path resolution, and Railiance mounts under /var/custodian.
2026-07-07 00:48:36 +02:00

17 lines
No EOL
667 B
Python

from __future__ import annotations
from activity_core.runtime_paths import resolve_runtime_path
def test_resolve_custodian_uri(monkeypatch) -> None:
monkeypatch.setenv("CUSTODIAN_REPO_ROOT", "/var/custodian")
assert resolve_runtime_path("custodian://memory/working") == (
__import__("pathlib").Path("/var/custodian/memory/working")
)
def test_resolve_activity_core_uri(monkeypatch) -> None:
monkeypatch.setenv("ACTIVITY_CORE_ROOT", "/etc/activity-core")
assert resolve_runtime_path("activity-core://schemas/daily-triage-report.json") == (
__import__("pathlib").Path("/etc/activity-core/schemas/daily-triage-report.json")
)