mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-15 00:11:29 +00:00
Initial commit
This commit is contained in:
commit
aebc1b03fd
4861 changed files with 812621 additions and 0 deletions
15
tests/unit/modules/cloud/linode/test_linode.py
Normal file
15
tests/unit/modules/cloud/linode/test_linode.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from __future__ import (absolute_import, division, print_function)
|
||||
|
||||
import pytest
|
||||
|
||||
from ansible_collections.community.general.plugins.modules.cloud.linode import linode
|
||||
from ansible_collections.community.general.tests.unit.modules.utils import set_module_args
|
||||
|
||||
if not linode.HAS_LINODE:
|
||||
pytestmark = pytest.mark.skip('test_linode.py requires the `linode-python` module')
|
||||
|
||||
|
||||
def test_name_is_a_required_parameter(api_key, auth):
|
||||
with pytest.raises(SystemExit):
|
||||
set_module_args({})
|
||||
linode.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue