Skip to content

Commit

Permalink
Do not collect coverage on unused command in test_others.
Browse files Browse the repository at this point in the history
  • Loading branch information
libklein committed Apr 18, 2024
1 parent 6233289 commit f09da73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_others.py
Expand Up @@ -263,7 +263,7 @@ def test_multiple_options_separator_1_unsupported_separator():

@app.command()
def main(names: typing.List[str] = typer.Option(..., multiple_separator="\t \n")):
print("Hello World")
pass # pragma: no cover

with pytest.raises(typer.UnsupportedMultipleSeparatorError) as exc_info:
runner.invoke(app, [])
Expand All @@ -278,7 +278,7 @@ def test_multiple_options_separator_2_non_list_type():

@app.command()
def main(names: str = typer.Option(..., multiple_separator=",")):
print("Hello World")
pass # pragma: no cover

with pytest.raises(typer.MultipleSeparatorForNonListTypeError) as exc_info:
runner.invoke(app, [])
Expand Down

0 comments on commit f09da73

Please sign in to comment.