aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2023-03-29 18:00:10 +0100
committerTomasz Kramkowski <tomasz@kramkow.ski>2023-03-29 19:01:43 +0100
commit72e3796c9e89946fd820fda96912dba2519e0828 (patch)
tree6fc8b6f81ebc72f233618781b24311c4d20e94f3 /tests
parent10425e109b4160e309fa8f32eabd13576b3ab5c7 (diff)
downloadpaste-72e3796c9e89946fd820fda96912dba2519e0828.tar.gz
paste-72e3796c9e89946fd820fda96912dba2519e0828.tar.xz
paste-72e3796c9e89946fd820fda96912dba2519e0828.zip
very basic cli test
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cli.py12
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