mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-15 10:31:42 -07:00
* 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:
parent
1f0361a1c6
commit
833530ab47
368 changed files with 113 additions and 59 deletions
|
@ -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')
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue