mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Have unittests import mock from ansible.compat so they work on py3 without mock installed from pypi
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import collections
|
||||
import mock
|
||||
import os
|
||||
import re
|
||||
|
||||
@@ -24,6 +23,8 @@ except ImportError:
|
||||
else: excName = str(expected)
|
||||
raise AssertionError("%s not raised" % excName)
|
||||
|
||||
from ansible.compat.tests import mock
|
||||
|
||||
from ansible.module_utils.database import (
|
||||
pg_quote_identifier,
|
||||
SQLParseError,
|
||||
|
||||
Reference in New Issue
Block a user