Raise error if target is whitespace, fix test

This commit is contained in:
Adam Yoblick 2024-07-23 17:13:23 -05:00
parent 05709cfa10
commit c5259c7e3f
2 changed files with 3 additions and 3 deletions

View file

@ -180,7 +180,7 @@ def test_address_required(cli):
def test_missing_target(cli):
with pytest.raises(ValueError) as ex:
cli(["--listen", "8888"])
cli(["--listen", "8888", "-m", ""])
assert "missing target" in str(ex.value)