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 03b735c commit 8b82f54Copy full SHA for 8b82f54
tests/unit/test_cli.py
@@ -0,0 +1,22 @@
1
+"""Tests for the command line interface."""
2
+
3
+from typer.testing import CliRunner
4
5
+from helm_values_manager.cli import app
6
7
+runner = CliRunner()
8
9
10
+def test_main_no_command():
11
+ """Test main function without any subcommand."""
12
+ result = runner.invoke(app)
13
+ assert result.exit_code == 0
14
+ assert "Usage: helm values-manager" in result.stdout
15
16
17
+def test_init_command():
18
+ """Test init command."""
19
+ result = runner.invoke(app, ["init", "--release", "test-release"])
20
21
+ assert "Initializing values manager" in result.stdout
22
+ assert "test-release" in result.stdout
0 commit comments