diff --git a/lower-constraints.txt b/lower-constraints.txt index c125cb77..db3c9836 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -20,7 +20,6 @@ linecache2==1.0.0 lxml==3.4.1 MarkupSafe==1.0 mccabe==0.2.1 -mock==2.0.0 openstackdocstheme==2.2.1 pbr==2.0.0 pep8==1.5.7 diff --git a/test-requirements.txt b/test-requirements.txt index 990511da..59ad1a5a 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,4 +15,3 @@ openstackdocstheme>=2.2.1 # Apache-2.0 stestr>=2.0.0 # Apache-2.0 # mock object framework -mock>=2.0.0 # BSD diff --git a/test/test_pipelines.py b/test/test_pipelines.py index a1ce3f1b..63f1b7a6 100644 --- a/test/test_pipelines.py +++ b/test/test_pipelines.py @@ -10,9 +10,9 @@ # License for the specific language governing permissions and limitations # under the License. -import mock from sitemap.generator import pipelines import unittest +from unittest import mock class TestSitemapItemExporter(unittest.TestCase): diff --git a/test/test_sitemap_file.py b/test/test_sitemap_file.py index 68e59ca0..9797415f 100644 --- a/test/test_sitemap_file.py +++ b/test/test_sitemap_file.py @@ -10,10 +10,10 @@ # License for the specific language governing permissions and limitations # under the License. -import mock import scrapy from sitemap.generator.spiders import sitemap_file import unittest +from unittest import mock class TestSitemapItem(unittest.TestCase):