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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user