Merge "Use unittest.mock instead of mock"

This commit is contained in:
Zuul 2020-08-17 16:07:38 +00:00 committed by Gerrit Code Review
commit 86d1aa8378
4 changed files with 2 additions and 6 deletions

View File

@ -19,7 +19,6 @@ linecache2==1.0.0
lxml==4.5.0 lxml==4.5.0
MarkupSafe==1.1.1 MarkupSafe==1.1.1
mccabe==0.2.1 mccabe==0.2.1
mock==2.0.0
openstackdocstheme==2.2.1 openstackdocstheme==2.2.1
pbr==2.0.0 pbr==2.0.0
pep8==1.5.7 pep8==1.5.7

View File

@ -13,6 +13,3 @@ pylint==1.7.1 # GPLv2
reno>=3.1.0 # Apache-2.0 reno>=3.1.0 # Apache-2.0
openstackdocstheme>=2.2.1 # Apache-2.0 openstackdocstheme>=2.2.1 # Apache-2.0
stestr>=2.0.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0
# mock object framework
mock>=2.0.0 # BSD

View File

@ -10,9 +10,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock
from sitemap.generator import pipelines from sitemap.generator import pipelines
import unittest import unittest
from unittest import mock
class TestSitemapItemExporter(unittest.TestCase): class TestSitemapItemExporter(unittest.TestCase):

View File

@ -10,10 +10,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock
import scrapy import scrapy
from sitemap.generator.spiders import sitemap_file from sitemap.generator.spiders import sitemap_file
import unittest import unittest
from unittest import mock
class TestSitemapItem(unittest.TestCase): class TestSitemapItem(unittest.TestCase):