tmux-amq/tests/test_config_command.py
tegwick 92881b6b56
Some checks failed
tamq-ci / test (push) Failing after 6s
feat: add readable duplex messaging
Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
2026-08-25 19:26:27 +02:00

14 lines
454 B
Python

import json
from tamq.cli import main
def test_config_command(monkeypatch, capsys, tmp_path):
monkeypatch.setenv("TAMQ_STATE_DIR", str(tmp_path / "state"))
assert main(["config"]) == 0
result = json.loads(capsys.readouterr().out)
assert result["maxmsg"] == 8
assert result["maxin"] == 1024
assert result["maxout"] == 32768
assert result["database"].endswith("tamq.sqlite3")
assert result["policy_profile"] == "default"