Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkram committed Oct 23, 2024
1 parent 7f2ac48 commit 86f8d85
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test entrypoint to anaconda-cli-base"""

from importlib import reload
import logging
import logging
from typing import Generator

import pytest
Expand Down Expand Up @@ -34,6 +34,15 @@ def test_entrypoint() -> None:
assert "org" in groups


@pytest.mark.parametrize("flag", ["--help", "-h"])
def test_org_subcommand_help(flag: str) -> None:
"""anaconda org -h and anaconda --help are both available"""

runner = CliRunner()
result = runner.invoke(anaconda_cli_base.cli.app, ["org", flag])
assert result.exit_code == 0


@pytest.mark.parametrize("cmd", ALL_SUBCOMMANDS)
def test_org_subcommands(cmd: str) -> None:
"""anaconda org <cmd>"""
Expand Down

0 comments on commit 86f8d85

Please sign in to comment.