mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:28 +02:00
Refactor tests out of packaged module for apache plugin (#7607)
Part of #7593. * Refactor tests out of packaged module for apache plugin * Exclude pycache and .py[cod] * Change tests path in tox.ini
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
include LICENSE.txt
|
||||
include README.rst
|
||||
recursive-include certbot_apache/tests/testdata *
|
||||
recursive-include tests *
|
||||
include certbot_apache/_internal/centos-options-ssl-apache.conf
|
||||
include certbot_apache/_internal/options-ssl-apache.conf
|
||||
recursive-include certbot_apache/_internal/augeas_lens *.aug
|
||||
global-exclude __pycache__
|
||||
global-exclude *.py[cod]
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
"""Certbot Apache Tests"""
|
||||
+2
-1
@@ -8,7 +8,8 @@ import six # pylint: disable=unused-import
|
||||
|
||||
from certbot import errors
|
||||
from certbot_apache._internal import constants
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class AutoHSTSTest(util.ApacheTest):
|
||||
+2
-1
@@ -7,7 +7,8 @@ from certbot.errors import MisconfigurationError
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_centos
|
||||
from certbot_apache._internal import parser
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
+2
-1
@@ -9,7 +9,8 @@ from certbot.compat import os
|
||||
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_centos
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
+1
-1
@@ -5,7 +5,7 @@ import unittest
|
||||
from certbot import errors
|
||||
from certbot.compat import os
|
||||
|
||||
from certbot_apache.tests import util
|
||||
import util
|
||||
|
||||
|
||||
class ComplexParserTest(util.ParserTest):
|
||||
+1
-1
@@ -6,7 +6,7 @@ import mock
|
||||
|
||||
from certbot import errors
|
||||
|
||||
from certbot_apache.tests import util
|
||||
import util
|
||||
|
||||
|
||||
class ConfiguratorReverterTest(util.ApacheTest):
|
||||
+2
-1
@@ -24,7 +24,8 @@ from certbot_apache._internal import apache_util
|
||||
from certbot_apache._internal import constants
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import parser
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class MultipleVhostsTest(util.ApacheTest):
|
||||
+2
-1
@@ -9,7 +9,8 @@ from certbot.compat import os
|
||||
|
||||
from certbot_apache._internal import apache_util
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class MultipleVhostsTestDebian(util.ApacheTest):
|
||||
+2
-1
@@ -12,7 +12,8 @@ from certbot.tests import util as certbot_util
|
||||
from certbot_apache._internal import obj
|
||||
|
||||
from certbot_apache._internal.display_ops import select_vhost_multiple
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
class SelectVhostMultiTest(unittest.TestCase):
|
||||
+2
-1
@@ -9,7 +9,8 @@ from certbot.compat import os
|
||||
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_fedora
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
+2
-1
@@ -9,7 +9,8 @@ from certbot.compat import os
|
||||
|
||||
from certbot_apache._internal import obj
|
||||
from certbot_apache._internal import override_gentoo
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
def get_vh_truth(temp_dir, config_name):
|
||||
+2
-1
@@ -12,7 +12,8 @@ from certbot.compat import os
|
||||
from certbot.tests import acme_util
|
||||
|
||||
from certbot_apache._internal.parser import get_aug_path
|
||||
from certbot_apache.tests import util
|
||||
|
||||
import util
|
||||
|
||||
|
||||
NUM_ACHALLS = 3
|
||||
+1
-1
@@ -7,7 +7,7 @@ import mock
|
||||
from certbot import errors
|
||||
from certbot.compat import os
|
||||
|
||||
from certbot_apache.tests import util
|
||||
import util
|
||||
|
||||
|
||||
class BasicParserTest(util.ParserTest):
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user