Files
nscertkeycreate/legacy/tests/test_cli_help_wildcard.py
deamonkai fc94008530 initial
2026-01-23 12:11:21 -06:00

13 lines
356 B
Python

import pytest
def test_csr_create_help_contains_wildcard(capsys):
from certctl import cli
p = cli.build_parser()
with pytest.raises(SystemExit):
p.parse_args(["csr", "create", "--help"])
captured = capsys.readouterr()
out = captured.out + captured.err
assert '--allow-wildcard' in out
assert 'wildcard' in out.lower()