Skip to content

Commit e69f9d5

Browse files
committed
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: I9bf0a8fbb7b4f22aa2f5b5ed0836d11cac27552b Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
1 parent f4b1a3f commit e69f9d5

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

cloudkittyclient/tests/unit/v1/test_hashmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# License for the specific language governing permissions and limitations
1414
# under the License.
1515
#
16-
import mock
16+
from unittest import mock
1717

1818
from cloudkittyclient import exc
1919
from cloudkittyclient.tests.unit.v1 import base

cloudkittyclient/tests/unit/v1/test_report_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# under the License.
1414
#
1515
import collections
16-
import mock
16+
from unittest import mock
1717

1818
from cloudkittyclient.tests.unit.v1 import base
1919
from cloudkittyclient.v1 import report_cli

cloudkittyclient/tests/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313
# License for the specific language governing permissions and limitations
1414
# under the License.
15+
from unittest import mock
16+
1517
import fixtures
1618
import testtools
1719

1820
from keystoneauth1 import adapter
1921
from keystoneauth1 import session
20-
import mock
2122

2223

2324
class BaseTestCase(testtools.TestCase):

test-requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@ coverage>=4.0,!=4.4 # Apache-2.0
88
python-subunit>=0.0.18 # Apache-2.0/BSD
99
oslotest>=1.10.0 # Apache-2.0
1010
stestr>=2.0 # Apache-2.0
11-
mock>=2.0 # BSD
1211
python-openstackclient>=3.14 # Apache-2.0

0 commit comments

Comments
 (0)