1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00

Ensure test cases have a config singleton

This commit is contained in:
Peter Eckersley
2015-09-16 16:49:39 -07:00
parent 0325c6cde6
commit f450a290c3
2 changed files with 3 additions and 1 deletions

View File

@@ -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."""

View File

@@ -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