We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c508eb commit 21c0debCopy full SHA for 21c0deb
1 file changed
tests/test_cli.py
@@ -13,12 +13,12 @@ def test_app_creation(self):
13
assert "keyup" in app.name
14
assert "console-based client for ClickUp" in app.help
15
16
- def test_app_help(self, capsys):
+ def test_app_help(self, capsys, monkeypatch):
17
"""Test that --help works."""
18
- import pytest
+ import sys
19
20
- with pytest.raises(SystemExit):
21
- app(["--help"])
+ monkeypatch.setattr(sys, "exit", lambda x: None)
+ app(["--help"])
22
captured = capsys.readouterr()
23
assert "Team ID" in captured.out
24
assert "Space ID" in captured.out
0 commit comments