We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ebc05 commit 77dca0bCopy full SHA for 77dca0b
pyproject.toml
@@ -21,6 +21,7 @@ dependencies = [
21
"discord.py>=2.0.0",
22
"questionary>=1.0.0",
23
"keyring>=23.0.0",
24
+ "pytest"
25
]
26
27
[project.scripts]
tests/test_cli.py
@@ -0,0 +1,15 @@
1
+import pytest
2
+from click.testing import CliRunner
3
+from zuffer.cli import main
4
+
5
+def test_cli_invokes_without_error():
6
+ runner = CliRunner()
7
+ result = runner.invoke(main)
8
+ assert result.exit_code == 0
9
10
+def test_cli_help_works():
11
12
+ result = runner.invoke(main, ['--help'])
13
14
+ assert "Usage: main [OPTIONS] COMMAND [ARGS]..." in result.output
15
+ assert "Zuffer CLI - Discord Server Management Tool" in result.output
0 commit comments