mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix unit test imports. (#27)
This commit is contained in:
parent
344b48c2bf
commit
7e60763ab3
8 changed files with 12 additions and 12 deletions
|
@ -13,7 +13,7 @@ import os
|
||||||
import json
|
import json
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FakeAnsibleModule
|
from .FakeAnsibleModule import FakeAnsibleModule
|
||||||
from ansible.module_utils import six
|
from ansible.module_utils import six
|
||||||
from mock import MagicMock
|
from mock import MagicMock
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ __metaclass__ = type
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..common import testcase_bad_xenapi_refs
|
from .common import testcase_bad_xenapi_refs
|
||||||
|
|
||||||
|
|
||||||
testcase_gather_vm_params_and_facts = {
|
testcase_gather_vm_params_and_facts = {
|
||||||
|
|
|
@ -9,8 +9,8 @@ __metaclass__ = type
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FailJsonException
|
from .FakeAnsibleModule import FailJsonException
|
||||||
from ..common import fake_xenapi_ref
|
from .common import fake_xenapi_ref
|
||||||
|
|
||||||
|
|
||||||
def test_get_object_ref_xenapi_failure(mocker, fake_ansible_module, XenAPI, xenserver):
|
def test_get_object_ref_xenapi_failure(mocker, fake_ansible_module, XenAPI, xenserver):
|
||||||
|
|
|
@ -9,8 +9,8 @@ __metaclass__ = type
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FailJsonException
|
from .FakeAnsibleModule import FailJsonException
|
||||||
from ..common import fake_xenapi_ref, testcase_bad_xenapi_refs
|
from .common import fake_xenapi_ref, testcase_bad_xenapi_refs
|
||||||
|
|
||||||
|
|
||||||
testcase_set_vm_power_state_bad_transitions = {
|
testcase_set_vm_power_state_bad_transitions = {
|
||||||
|
|
|
@ -9,8 +9,8 @@ __metaclass__ = type
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FailJsonException
|
from .FakeAnsibleModule import FailJsonException
|
||||||
from ..common import fake_xenapi_ref, testcase_bad_xenapi_refs
|
from .common import fake_xenapi_ref, testcase_bad_xenapi_refs
|
||||||
|
|
||||||
|
|
||||||
testcase_wait_for_vm_ip_address_bad_power_states = {
|
testcase_wait_for_vm_ip_address_bad_power_states = {
|
||||||
|
|
|
@ -10,7 +10,7 @@ __metaclass__ = type
|
||||||
import pytest
|
import pytest
|
||||||
import atexit
|
import atexit
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FailJsonException
|
from .FakeAnsibleModule import FailJsonException
|
||||||
from ansible.module_utils.ansible_release import __version__ as ANSIBLE_VERSION
|
from ansible.module_utils.ansible_release import __version__ as ANSIBLE_VERSION
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ __metaclass__ = type
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FailJsonException
|
from .FakeAnsibleModule import FailJsonException
|
||||||
from ..common import fake_xenapi_ref
|
from .common import fake_xenapi_ref
|
||||||
|
|
||||||
|
|
||||||
def test_xenserverobject_xenapi_lib_detection(mocker, fake_ansible_module, xenserver):
|
def test_xenserverobject_xenapi_lib_detection(mocker, fake_ansible_module, xenserver):
|
||||||
|
|
|
@ -11,7 +11,7 @@ import sys
|
||||||
import importlib
|
import importlib
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from ..FakeAnsibleModule import FakeAnsibleModule
|
from .FakeAnsibleModule import FakeAnsibleModule
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
Loading…
Reference in a new issue