mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
fix broken test
This commit is contained in:
@@ -260,7 +260,7 @@ class RenewableCert(object): # pylint: disable=too-many-instance-attributes
|
|||||||
|
|
||||||
:returns: The path to the current version of the specified
|
:returns: The path to the current version of the specified
|
||||||
member.
|
member.
|
||||||
:rtype: str
|
:rtype: str or None
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if kind not in ALL_FOUR:
|
if kind not in ALL_FOUR:
|
||||||
|
|||||||
@@ -764,6 +764,8 @@ class RenewableCertTests(BaseRenewableCertTest):
|
|||||||
|
|
||||||
def test_bad_config_file(self):
|
def test_bad_config_file(self):
|
||||||
from letsencrypt import renewer
|
from letsencrypt import renewer
|
||||||
|
os.unlink(os.path.join(self.cli_config.renewal_configs_dir,
|
||||||
|
"example.org.conf"))
|
||||||
with open(os.path.join(self.cli_config.renewal_configs_dir,
|
with open(os.path.join(self.cli_config.renewal_configs_dir,
|
||||||
"bad.conf"), "w") as f:
|
"bad.conf"), "w") as f:
|
||||||
f.write("incomplete = configfile\n")
|
f.write("incomplete = configfile\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user