summaryrefslogtreecommitdiff
path: root/cli/tests/test_cli_service.py
blob: dbc5889222ec9078a44dc9ed7abef1339e019cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Tests for service CLI commands."""

from click.testing import CliRunner
from trading_cli.main import cli


def test_service_up_help():
    runner = CliRunner()
    result = runner.invoke(cli, ["service", "up", "--help"])
    assert result.exit_code == 0


def test_service_down_help():
    runner = CliRunner()
    result = runner.invoke(cli, ["service", "down", "--help"])
    assert result.exit_code == 0


def test_service_logs_help():
    runner = CliRunner()
    result = runner.invoke(cli, ["service", "logs", "--help"])
    assert result.exit_code == 0
    assert "--name" in result.output