mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
test_cmd_line_invalid_setting added.
This commit is contained in:
parent
243a277da8
commit
bb2496db7b
@ -175,6 +175,14 @@ def test_cmd_line():
|
||||
app = NoConfigApp()
|
||||
assert app.cfg.preload_app
|
||||
|
||||
|
||||
def test_cmd_line_invalid_setting(capsys):
|
||||
with AltArgs(["prog_name", "-q", "bar"]):
|
||||
with pytest.raises(SystemExit):
|
||||
NoConfigApp()
|
||||
_, err = capsys.readouterr()
|
||||
assert "error: unrecognized arguments: -q" in err
|
||||
|
||||
def test_app_config():
|
||||
with AltArgs():
|
||||
app = NoConfigApp()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user