mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Ensure test cases have a config singleton
This commit is contained in:
parent
0325c6cde6
commit
f450a290c3
2 changed files with 3 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ from letsencrypt import achallenges
|
|||
from letsencrypt import errors
|
||||
|
||||
from letsencrypt_nginx.tests import util
|
||||
|
||||
import zope.component
|
||||
|
||||
class NginxConfiguratorTest(util.NginxTest):
|
||||
"""Test a semi complex vhost configuration."""
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import pkg_resources
|
|||
import unittest
|
||||
|
||||
import mock
|
||||
import zope.component
|
||||
|
||||
from acme import jose
|
||||
|
||||
|
|
@ -60,6 +61,7 @@ def get_nginx_configurator(
|
|||
name="nginx",
|
||||
version=version)
|
||||
config.prepare()
|
||||
zope.component.provideUtility(config)
|
||||
return config
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue