Prepare un-flatmapping (#5350) (#5427)

* Add module name into fixtures directory name.

* Rename conftest.py to avoid collisions.

* Match filenames inside directories.

(cherry picked from commit fa924aae31)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2022-10-26 08:00:05 +02:00 committed by GitHub
commit 833530ab47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
368 changed files with 113 additions and 59 deletions

View file

@ -10,6 +10,8 @@ import pytest
from ansible_collections.community.general.plugins.modules.cloud.linode import linode
from ansible_collections.community.general.tests.unit.plugins.modules.utils import set_module_args
from .linode_conftest import api_key, auth
if not linode.HAS_LINODE:
pytestmark = pytest.mark.skip('test_linode.py requires the `linode-python` module')

View file

@ -25,6 +25,8 @@ from ansible_collections.community.general.plugins.module_utils.linode import ge
from ansible_collections.community.general.tests.unit.plugins.modules.utils import set_module_args
from ansible_collections.community.general.tests.unit.compat import mock
from .linode_conftest import access_token, no_access_token_in_env, default_args, mock_linode
def test_mandatory_state_is_validated(capfd):
with pytest.raises(SystemExit):

View file

@ -11,7 +11,8 @@ __metaclass__ = type
import json
import pytest
from .common import fake_xenapi_ref
from .xenserver_common import fake_xenapi_ref
from .xenserver_conftest import XenAPI, xenserver_guest_info
pytestmark = pytest.mark.usefixtures('patch_ansible_module')

View file

@ -10,7 +10,8 @@ __metaclass__ = type
import json
import pytest
from .common import fake_xenapi_ref
from .xenserver_common import fake_xenapi_ref
from .xenserver_conftest import fake_ansible_module, XenAPI, xenserver_guest_powerstate
testcase_set_powerstate = {