summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lower-constraints.txt1
-rw-r--r--oslo_policy/tests/test_checks.py3
-rw-r--r--oslo_policy/tests/test_external.py3
-rw-r--r--oslo_policy/tests/test_generator.py2
-rw-r--r--oslo_policy/tests/test_parser.py3
-rw-r--r--oslo_policy/tests/test_policy.py2
-rw-r--r--oslo_policy/tests/test_shell.py3
-rw-r--r--oslo_policy/tests/test_sphinxpolicygen.py3
8 files changed, 12 insertions, 8 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 32f1f7d..36e332d 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -19,7 +19,6 @@ keystoneauth1==3.4.0
linecache2==1.0.0
MarkupSafe==1.0
mccabe==0.2.1
-mock==2.0.0
mox3==0.20.0
msgpack-python==0.4.0
netaddr==0.7.18
diff --git a/oslo_policy/tests/test_checks.py b/oslo_policy/tests/test_checks.py
index 8c2f143..61b5154 100644
--- a/oslo_policy/tests/test_checks.py
+++ b/oslo_policy/tests/test_checks.py
@@ -13,7 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
+
from oslotest import base as test_base
from oslo_policy import _checks
diff --git a/oslo_policy/tests/test_external.py b/oslo_policy/tests/test_external.py
index 92ff539..80fdec8 100644
--- a/oslo_policy/tests/test_external.py
+++ b/oslo_policy/tests/test_external.py
@@ -14,7 +14,8 @@
# under the License.
import json
-import mock
+from unittest import mock
+
from oslo_serialization import jsonutils
from requests_mock.contrib import fixture as rm_fixture
import six.moves.urllib.parse as urlparse
diff --git a/oslo_policy/tests/test_generator.py b/oslo_policy/tests/test_generator.py
index bb3ee89..33d420e 100644
--- a/oslo_policy/tests/test_generator.py
+++ b/oslo_policy/tests/test_generator.py
@@ -10,9 +10,9 @@
# under the License.
import operator
+from unittest import mock
import warnings
-import mock
from oslo_config import cfg
import stevedore
import testtools
diff --git a/oslo_policy/tests/test_parser.py b/oslo_policy/tests/test_parser.py
index df5bbbc..edfd475 100644
--- a/oslo_policy/tests/test_parser.py
+++ b/oslo_policy/tests/test_parser.py
@@ -13,7 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
+
from oslotest import base as test_base
import six
diff --git a/oslo_policy/tests/test_policy.py b/oslo_policy/tests/test_policy.py
index bc41054..f3f75b0 100644
--- a/oslo_policy/tests/test_policy.py
+++ b/oslo_policy/tests/test_policy.py
@@ -16,8 +16,8 @@
"""Test of Policy Engine"""
import os
+from unittest import mock
-import mock
from oslo_config import cfg
from oslo_context import context
from oslo_serialization import jsonutils
diff --git a/oslo_policy/tests/test_shell.py b/oslo_policy/tests/test_shell.py
index 32dad51..0eb6aa6 100644
--- a/oslo_policy/tests/test_shell.py
+++ b/oslo_policy/tests/test_shell.py
@@ -14,7 +14,8 @@
# under the License.
import copy
-import mock
+from unittest import mock
+
from oslo_serialization import jsonutils
from oslo_policy import shell
diff --git a/oslo_policy/tests/test_sphinxpolicygen.py b/oslo_policy/tests/test_sphinxpolicygen.py
index ad65ec3..461d6c5 100644
--- a/oslo_policy/tests/test_sphinxpolicygen.py
+++ b/oslo_policy/tests/test_sphinxpolicygen.py
@@ -10,7 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
-import mock
+from unittest import mock
+
from oslotest import base
from oslo_policy import sphinxpolicygen