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.
20 lines
690 B
Python
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())
|