docs: add rough intro to test rtd integration

This commit is contained in:
Alex Kelly 2021-10-04 12:09:35 -04:00
parent f21cf8b100
commit 667e1c174e
3 changed files with 19 additions and 2 deletions

View file

@ -50,7 +50,19 @@ def test_san():
def test_san_only():
"""verify --san outputs correctly"""
response = runner.invoke(cert_main, ["www.franklin.edu", "--san-only"])
check_domain = "franklin.edu"
response = runner.invoke(cert_main, ["--san-only", check_domain])
assert response.exit_code == 0
sep_string = ","
response = runner.invoke(
cert_main, ["--san-only", f"--sep={sep_string}", check_domain]
)
assert response.exit_code == 0
assert sep_string in response.output
sep_string = " -d "
response = runner.invoke(
cert_main, ["--san-only", f"--sep={sep_string}", check_domain]
)
assert response.exit_code == 0