| monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x16d7f01f0>
|
|
|
| def test_indicator_cli_volume_trend(monkeypatch):
|
| monkeypatch.setattr("rtrader.cli.indicator_cli.CMFService", StubCMFService)
|
|
|
| runner = CliRunner()
|
| result = runner.invoke(
|
| indicator_group,
|
| [
|
| "test",
|
| "--date",
|
| "2025-10-01",
|
| "--type",
|
| "volume_trend",
|
| "--symbol",
|
| "ASAN",
|
| ],
|
| )
|
|
|
| assert result.exit_code == 0, result.output
|
| > assert "Trending Up" in result.output
|
| E AssertionError: assert 'Trending Up' in 'Symbol Status Indices Trending Span(hrs) Window(min)\n------ ------------------ ----------- -------- --------- -----------\nASAN Not Trending 69,18,48 No 4.25 30\n'
|
| E + where 'Symbol Status Indices Trending Span(hrs) Window(min)\n------ ------------------ ----------- -------- --------- -----------\nASAN Not Trending 69,18,48 No 4.25 30\n' = <Result okay>.output
|
|
|
| tests/cli/test_indicator_cli.py:67: AssertionError
|