1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-24 19:22:07 +03:00

Test now makes a non-.conf file to be ignored

This commit is contained in:
Seth Schoen
2016-01-25 12:52:27 -08:00
parent ca75532328
commit 2d0f66ea32

View File

@@ -68,6 +68,13 @@ class BaseRenewableCertTest(unittest.TestCase):
config.write()
self.config = config
# We also create a file that isn't a renewal config in the same
# location to test that logic that reads in all-and-only renewal
# configs will ignore it and NOT attempt to parse it.
junk = open(os.path.join(self.tempdir, "renewal", "IGNORE.THIS"), "w")
junk.write("This file should be ignored!")
junk.close()
self.defaults = configobj.ConfigObj()
self.test_rc = storage.RenewableCert(config.filename, self.cli_config)