aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_cli.py
blob: 5e0acb32e4856afc2aaadfd63dbbab39e073a1ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from io import StringIO

from paste.__main__ import main


def test_cli(monkeypatch):
    monkeypatch.setattr("paste.__main__.db", None)
    monkeypatch.setattr("paste.__main__.application", None)
    monkeypatch.setattr("paste.__main__.store", None)
    monkeypatch.setenv("PASTE_DB", "test_value")

    buf = StringIO()
    main(["paste", "--help"], stderr=buf)
    assert "paste" in buf.getvalue()