from autoshorts.cli.demo_telegram_delivery import main


def test_demo_telegram_delivery_cli_prints_metadata_and_review_text(capsys):
    exit_code = main([])

    captured = capsys.readouterr()

    assert exit_code == 0
    assert "Delivery type: telegram_review" in captured.out
    assert "Topic: review" in captured.out
    assert "Requires human approval: yes" in captured.out
    assert "Side effects: none" in captured.out
    assert "Text length:" in captured.out
    assert "## Review Batch: sample-ai-life-systems" in captured.out
    assert "Ready: 1" in captured.out
    assert "Blocked: 1" in captured.out
    assert "Invalid: 1" in captured.out
    assert captured.err == ""
    assert "publish" not in captured.out.casefold()
    assert "post" not in captured.out.casefold()
