test: update tests to handle all branches

chore: ignore the except clauses for coverage
This commit is contained in:
Alex Kelly 2021-09-30 16:23:00 -04:00
parent 9a1a960641
commit 26638e7e73
2 changed files with 10 additions and 5 deletions

View file

@ -11,6 +11,8 @@ def test_main():
assert response.exit_code == 0
response = runner.invoke(cert_main, ["www.franklin.edu:443"])
assert response.exit_code == 0
response = runner.invoke(cert_main, ["www.franklin.edu", "--no-color"])
assert response.exit_code == 0
def test_version():
@ -27,3 +29,8 @@ def test_dump():
def test_san():
response = runner.invoke(cert_main, ["www.franklin.edu", "--san"])
assert response.exit_code == 0
def test_bad_cert():
response = runner.invoke(cert_main, ["support.bluequill.com", "--san"])
assert response.exit_code == 0