clan-core/pkgs/clan-vm-manager/tests/test_cli.py
Qubasa 0ee8dceee2
Some checks failed
checks / checks (pull_request) Failing after 1m10s
checks / check-links (pull_request) Successful in 21s
checks / checks-impure (pull_request) Successful in 1m46s
clan-vm-manager: Basic pytest framework established
2024-03-22 19:08:35 +01:00

9 lines
188 B
Python

import pytest
from cli import Cli
def test_help(capfd: pytest.CaptureFixture) -> None:
cli = Cli()
with pytest.raises(SystemExit):
cli.run(["clan-vm-manager", "--help"])