27 lines
744 B
Python
27 lines
744 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 "forgejo.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"]
|