Skip to content

Commit f09da73

Browse files
committed
Do not collect coverage on unused command in test_others.
1 parent 6233289 commit f09da73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_others.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def test_multiple_options_separator_1_unsupported_separator():
263263

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

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

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

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

0 commit comments

Comments
 (0)