File: test_cli.py

package info (click to toggle)
pytrydan 0.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: python: 690; makefile: 22; javascript: 8; sh: 5
file content (13 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from typer.testing import CliRunner

from pytrydan.cli import app

runner = CliRunner()


def test_help():
    """The help message includes the CLI name."""
    result = runner.invoke(app, ["--help"])
    assert result.exit_code == 0
    assert "Set KeyWord value in Trydan." in result.stdout
    assert "Retrieve Trydan Status." in result.stdout