We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ebedf8 commit e340b1aCopy full SHA for e340b1a
tests/test_main.py
@@ -12,3 +12,10 @@ def test_app_version(capfd):
12
main()
13
out, _ = capfd.readouterr()
14
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