Use unittest.mock instead of third party mock

Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I8ac5e339700316b07b7c548f24ffc8dd83110df3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:54:45 -05:00
parent a0c6625d20
commit 2fe47c29c9
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
4 changed files with 5 additions and 4 deletions

View File

@ -15,7 +15,8 @@
# under the License.
import datetime
import mock
from unittest import mock
from oslo_utils import timeutils
from oslotest import base

View File

@ -17,10 +17,11 @@
"""
import datetime
from unittest import mock
import fixtures
import time
import mock
from oslotest import base
from ceilometer import monasca_client as mon_client

View File

@ -12,7 +12,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from oslo_utils import netutils
from oslotest import base

View File

@ -1,6 +1,5 @@
hacking>=3.0,<3.1.0 # Apache-2.0
git+https://github.com/openstack/ceilometer.git@master#egg=ceilometer
mock>=1.2 # BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
oslotest>=2.15.0 # Apache-2.0