summaryrefslogtreecommitdiff
path: root/cli/tests/test_cli_data.py
blob: 2cc2149e080ba152f12afdf60314c58f116ea0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from click.testing import CliRunner
from trading_cli.main import cli


def test_cli_help():
    runner = CliRunner()
    result = runner.invoke(cli, ["--help"])
    assert result.exit_code == 0
    assert "Usage" in result.output


def test_cli_data_group():
    runner = CliRunner()
    result = runner.invoke(cli, ["data", "--help"])
    assert result.exit_code == 0
    assert "collect" in result.output
    assert "history" in result.output