diff options
Diffstat (limited to 'cli/tests/test_cli_strategy.py')
| -rw-r--r-- | cli/tests/test_cli_strategy.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cli/tests/test_cli_strategy.py b/cli/tests/test_cli_strategy.py index 3c89477..cf3057b 100644 --- a/cli/tests/test_cli_strategy.py +++ b/cli/tests/test_cli_strategy.py @@ -1,4 +1,5 @@ """Tests for strategy CLI commands.""" + from unittest.mock import patch, MagicMock from click.testing import CliRunner from trading_cli.main import cli @@ -44,4 +45,8 @@ def test_strategy_info_unknown(): runner = CliRunner() result = runner.invoke(cli, ["strategy", "info", "--name", "nonexistent"]) # Should handle gracefully (exit 0 or 1 with message) - assert "not found" in result.output.lower() or result.exit_code != 0 or "nonexistent" in result.output + assert ( + "not found" in result.output.lower() + or result.exit_code != 0 + or "nonexistent" in result.output + ) |
