Skip to content

Commit 665ea5e

Browse files
committed
add a smoke test
1 parent 0d0a50c commit 665ea5e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_cli_args.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import argparse
2+
import subprocess
3+
import sys
24

35
import pytest
46

@@ -16,6 +18,20 @@ def test_unknown_flag_fails_fast(capsys):
1618
assert "--definitely-not-a-real-flag" in out.err
1719

1820

21+
def test_create_rft_help_does_not_error():
22+
"""Smoke test: `python -m eval_protocol create rft --help` should exit cleanly."""
23+
proc = subprocess.run(
24+
[sys.executable, "-m", "eval_protocol", "create", "rft", "--help"],
25+
capture_output=True,
26+
text=True,
27+
check=False,
28+
)
29+
assert proc.returncode == 0
30+
combined = (proc.stdout or "") + "\n" + (proc.stderr or "")
31+
assert "create rft" in combined
32+
assert "--dry-run" in combined
33+
34+
1935
@pytest.mark.skip(reason="preview and deploy commands are currently disabled in cli.py")
2036
class TestCliArgParsing:
2137
# --- Tests for 'preview' command ---

0 commit comments

Comments
 (0)