mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Fix paths in test cases
This commit is contained in:
@@ -39,7 +39,7 @@ def create_le_config(parent_dir):
|
|||||||
|
|
||||||
def extract_configs(configs, parent_dir):
|
def extract_configs(configs, parent_dir):
|
||||||
"""Extracts configs to a new dir under parent_dir and returns it"""
|
"""Extracts configs to a new dir under parent_dir and returns it"""
|
||||||
config_dir = os.path.join(parent_dir, "configs")
|
config_dir = os.path.join(parent_dir, "renewal")
|
||||||
|
|
||||||
if os.path.isdir(configs):
|
if os.path.isdir(configs):
|
||||||
shutil.copytree(configs, config_dir, symlinks=True)
|
shutil.copytree(configs, config_dir, symlinks=True)
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ class BaseRenewableCertTest(unittest.TestCase):
|
|||||||
for kind in ALL_FOUR:
|
for kind in ALL_FOUR:
|
||||||
config[kind] = os.path.join(self.tempdir, "live", "example.org",
|
config[kind] = os.path.join(self.tempdir, "live", "example.org",
|
||||||
kind + ".pem")
|
kind + ".pem")
|
||||||
config.filename = os.path.join(self.tempdir, "configs",
|
config.filename = os.path.join(self.tempdir, "renewal",
|
||||||
"example.org.conf")
|
"example.org.conf")
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user