ddos-script/simple_ddos/tests/test_simpleDDoS_cli.py
2023-11-08 23:18:30 -05:00

12 lines
No EOL
304 B
Python

# tests/test_rptodo.py
from typer.testing import CliRunner
from simpleDDoS import __app_name__, __version__, cli
runner = CliRunner()
def test_version():
result = runner.invoke(cli.app, ["--version"])
assert result.exit_code == 0
assert f"{__app_name__} v{__version__}\n" in result.stdout