test: add test for file input

This commit is contained in:
Alex Kelly 2021-10-01 12:19:47 -04:00
parent 310a9f7ffe
commit ef5756bd95

View file

@ -52,3 +52,9 @@ def test_bad_cert():
"""verify an expired certificate works"""
response = runner.invoke(cert_main, ["support.bluequill.com", "--san"])
assert response.exit_code == 0
def test_from_file():
"""Verify loading domains from file"""
response = runner.invoke(cert_main, ["--filename", "ci/test_domains.txt"])
assert response.exit_code == 0