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.
28 lines
742 B
Python
28 lines
742 B
Python
"""Tests for developer feedback CLI (WP-0001 T01)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import json
|
|
|
|
from click.testing import CliRunner
|
|
|
|
from kaizen_agentic.cli import cli
|
|
|
|
|
|
def test_feedback_human_output():
|
|
runner = CliRunner()
|
|
result = runner.invoke(cli, ["feedback"])
|
|
assert result.exit_code == 0
|
|
assert "feedback channels" in result.output.lower()
|
|
assert "gitea.coulomb.social" in result.output
|
|
assert "bug report" in result.output.lower()
|
|
|
|
|
|
def test_feedback_json_output():
|
|
runner = CliRunner()
|
|
result = runner.invoke(cli, ["feedback", "--json"])
|
|
assert result.exit_code == 0
|
|
payload = json.loads(result.output)
|
|
assert "channels" in payload
|
|
assert "bug_report" in payload["templates"]
|