Skip to content

Commit e340b1a

Browse files
add test app_missing_argument
1 parent 4ebedf8 commit e340b1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,10 @@ def test_app_version(capfd):
1212
main()
1313
out, _ = capfd.readouterr()
1414
assert out == APP_NAME + ' ' + APP_VERSION + ' ' + APP_URL + "\n"
15+
16+
17+
def test_app_missing_argument(capfd):
18+
sys.argv = ['index_generator']
19+
main()
20+
out, _ = capfd.readouterr()
21+
assert out == APP_NAME + ' ' + APP_VERSION + ' ' + APP_URL + "\nUsage: index-generator [OPTIONS] PATH.\nSee: index-generator --help\n"

0 commit comments

Comments
 (0)