From ef5756bd955931795c134145c4bce9f130729c31 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Fri, 1 Oct 2021 12:19:47 -0400 Subject: [PATCH] test: add test for file input --- tests/test_checkcert.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_checkcert.py b/tests/test_checkcert.py index 4279d7e..c1af858 100644 --- a/tests/test_checkcert.py +++ b/tests/test_checkcert.py @@ -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