Files
kaizen-agentic/tests/test_path_compat.py
tegwick 80c60ebd7a
Some checks failed
ci / test (3.12) (push) Has been cancelled
ci / test (3.10) (push) Has been cancelled
WP-0001: feedback channels, CI, pre-commit, telemetry docs
Add kaizen-agentic feedback CLI, Gitea issue templates, CI workflow,
pre-commit hooks, FEEDBACK/TELEMETRY docs, and cross-platform path tests.
Improve CLI registry error messages; remove agents_backup scaffolding.
Apply black formatting across src/tests for CI consistency.

State Hub message sent to agentic-resources for Helix correlation doc link.
2026-06-16 01:58:07 +02:00

20 lines
690 B
Python

"""Cross-platform path handling smoke tests (WP-0001 T07)."""
from __future__ import annotations
from pathlib import Path, PureWindowsPath
from kaizen_agentic.metrics import MetricsStore
def test_metrics_store_accepts_string_project_root(tmp_path: Path):
store = MetricsStore(str(tmp_path), "coach")
store.append({"success": True}, idempotency_key="win-path-test")
assert store.executions_path.exists()
def test_metrics_paths_use_forward_join_semantics(tmp_path: Path):
store = MetricsStore(tmp_path, "tdd-workflow")
suffix = PureWindowsPath(".kaizen/metrics/tdd-workflow/executions.jsonl")
assert store.executions_path.as_posix().endswith(suffix.as_posix())