Skip to content

Commit

Permalink
test: add a test for some uncovered lines in cmdline.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed May 23, 2022
1 parent 57e49ec commit 5220fa6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,12 @@ def test_error(self):
assert "fooey" in err
assert "help" in err

def test_option_error(self):
self.command_line("run --fooey", ret=ERR)
err = self.stderr()
assert "fooey" in err
assert "help" in err

def test_doc_url(self):
assert __url__.startswith("https://coverage.readthedocs.io")

Expand Down

0 comments on commit 5220fa6

Please sign in to comment.