From bedf818e007470ed9a5eb3651335493622a0257c Mon Sep 17 00:00:00 2001 From: "Gregory M. Kapfhammer" Date: Thu, 21 Nov 2024 13:50:28 -0500 Subject: [PATCH] test: Add more tests for spelling mistakes of cli arguments in tests/test_main.py. --- tests/test_main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/test_main.py b/tests/test_main.py index 58c09b1..58294f0 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -66,4 +66,16 @@ def test_run_invalid_report_argument(): assert result.exit_code != 0 +def test_invalid_tldr_spelling(): + """Test the run command with invalid tldr command-line argument spelling.""" + result = runner.invoke(main.cli, ["run", ". tests/", "--tldear"]) + assert result.exit_code != 0 + + +def test_invalid_help_spelling(): + """Test the run command with invalid help command-line argument spelling.""" + result = runner.invoke(main.cli, ["run", ". tests/", "--hlp"]) + assert result.exit_code != 0 + + # }}}