from epa_aqs_api import cli


def test_cli(runner):
    result = runner.invoke(cli.main)
    assert result.exit_code == 0
    assert not result.exception
    assert "Entrypoint for the program" in result.output.strip()


def test_cli_commands(runner):
    result = runner.invoke(cli.main)
    assert result.exit_code == 0
    assert not result.exception
    commands = result.output[result.output.index("Commands:\n") + 10 :]
    command_list = ["daily-data"]
    for cmd in command_list:
        assert cmd in commands

from epa_aqs_api import cli


def test_cli(runner):
    result = runner.invoke(cli.main)
    assert result.exit_code == 0
    assert not result.exception
    assert "Entrypoint for the program" in result.output.strip()


def test_cli_commands(runner):
    result = runner.invoke(cli.main)
    assert result.exit_code == 0
    assert not result.exception
    commands = result.output[result.output.index("Commands:\n") + 10 :]
    command_list = ["daily-data"]
    for cmd in command_list:
        assert cmd in commands
