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:
Michal Reznik authored and Christian Heimes committed 2018-01-09 10:17:01 +01:00
1 parent ad996d79c6
commit 3bdac1a84d
3 files changed
+2 -2

No files matched your search

+2 -2
View File
@@ -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: