mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix relative imports
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ..compat import unittest
|
||||
from .. compat import unittest
|
||||
|
||||
from ansible.parsing.yaml.objects import AnsibleBaseYAMLObject
|
||||
from ansible.errors import AnsibleError
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ..compat import unittest
|
||||
from .. compat import unittest
|
||||
from ansible.parsing import load
|
||||
from ansible.errors import AnsibleParserError
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
from ansible.parsing.mod_args import ModuleArgsParser
|
||||
|
||||
from .. compat import CompatTestCase
|
||||
from .. compat import unittest
|
||||
|
||||
class TestModArgsDwim(CompatTestCase):
|
||||
class TestModArgsDwim(unittest.TestCase):
|
||||
|
||||
# TODO: add tests that construct ModuleArgsParser with a task reference
|
||||
# TODO: verify the AnsibleError raised on failure knows the task
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ..compat import unittest
|
||||
from ... compat import unittest
|
||||
|
||||
from yaml.scanner import ScannerError
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from ansible.playbook.task import Task
|
||||
from ..compat import unittest
|
||||
from .. compat import unittest
|
||||
|
||||
basic_shell_task = dict(
|
||||
name = 'Test Task',
|
||||
|
||||
Reference in New Issue
Block a user