diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_cli.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..6f3beb2 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,12 @@ +from paste.__main__ import main + + +def test_cli(monkeypatch, capfd): + monkeypatch.setattr("paste.__main__.db", None) + monkeypatch.setattr("paste.__main__.application", None) + monkeypatch.setattr("paste.__main__.store", None) + monkeypatch.setenv("PASTE_DB", "test_value") + + main(["paste", "--help"]) + _, err = capfd.readouterr() + assert "paste" in err |