tests: move CA related modules to pytest_plugins
Till now both create_caless_pki.py and create_external_ca.py were stored in test_integration folder. However when trying to import e.g. "from create_external_ca import ExternalCA" from tasks.py where all other integration test`s support functions lives we get "AttributeError: module 'pytest' has no attribute 'config' as pytest was not completely initialized at the moment of the import. https://pagure.io/freeipa/issue/7302 Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
1 parent
ad996d79c6
commit
3bdac1a84d
3 files changed
+2
-2
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -33,9 +33,9 @@ from ipapython import ipautil
|
||||
from ipaplatform.paths import paths
|
||||
from ipapython.dn import DN
|
||||
from ipatests.test_integration.base import IntegrationTest
|
||||
from ipatests.test_integration import create_caless_pki
|
||||
from ipatests.test_integration.create_external_ca import ExternalCA
|
||||
from ipatests.pytest_plugins.integration import tasks
|
||||
from ipatests.pytest_plugins.integration.create_external_ca import ExternalCA
|
||||
from ipatests.pytest_plugins.integration import create_caless_pki
|
||||
from ipalib.constants import DOMAIN_LEVEL_0
|
||||
|
||||
if six.PY3:
|
||||
|
||||
Reference in new issue
Block a user