diff options
Diffstat (limited to 'cli/tests/test_cli_portfolio.py')
| -rw-r--r-- | cli/tests/test_cli_portfolio.py | 16 |
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 |
