summaryrefslogtreecommitdiff
path: root/cli/tests/test_cli_portfolio.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:56:16 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 17:56:16 +0900
commitfa7e1dc44787592da647bdda0a63310be0cfcc8b (patch)
tree9533c747f8a40aaa1697252382bfbbafc8f3fe9d /cli/tests/test_cli_portfolio.py
parenta65575124b18f2ec5d418623e22c5bdef6c3424e (diff)
test: add CLI command tests and API router tests
Diffstat (limited to 'cli/tests/test_cli_portfolio.py')
-rw-r--r--cli/tests/test_cli_portfolio.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/tests/test_cli_portfolio.py b/cli/tests/test_cli_portfolio.py
new file mode 100644
index 0000000..351b49f
--- /dev/null
+++ b/cli/tests/test_cli_portfolio.py
@@ -0,0 +1,16 @@
+"""Tests for portfolio CLI commands."""
+from click.testing import CliRunner
+from trading_cli.main import cli
+
+
+def test_portfolio_show_help():
+ runner = CliRunner()
+ result = runner.invoke(cli, ["portfolio", "show", "--help"])
+ assert result.exit_code == 0
+
+
+def test_portfolio_history_help():
+ runner = CliRunner()
+ result = runner.invoke(cli, ["portfolio", "history", "--help"])
+ assert result.exit_code == 0
+ assert "--days" in result.output