manila/manila/tests/api/views
Goutham Pacha Ravi 598223985a Use unittest.mock instead of third party lib
mock was adopted into standard python
in version 3.3 [1]. Since manila no longer
supports python2.7, we can use the inbuilt
mock package rather than the third party
lib.

Fix some issues with imports that weren't
following our import conventions of grouping
imports [3]

Add a hacking test to ensure we don't regress
on this.

[1] https://docs.python.org/3/library/unittest.mock.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2020-March/013281.html
[3] https://docs.openstack.org/hacking/latest/user/hacking.html#imports

Co-Authored-By: Sean McGinnis <sean.mcginnis@gmail.com>
Change-Id: If857a49fbf526983e712282a25d7e8bef5093533
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-04-17 16:24:27 -07:00
..
__init__.py Add support of nova network for share-networks API and DB 2015-02-16 14:41:00 +02:00
test_quota_class_sets.py Add new quota for share replicas 2020-04-06 13:17:30 +00:00
test_quota_sets.py Add new quota for share replicas 2020-04-06 13:17:30 +00:00
test_scheduler_stats.py QoS support for shares 2016-01-15 10:15:50 +08:00
test_share_accesses.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_share_network_subnets.py Add share network with multiple subnets 2019-09-13 11:27:18 -03:00
test_share_networks.py Add share network with multiple subnets 2019-09-13 11:27:18 -03:00
test_shares.py Create share from snapshot in another pool or backend 2020-04-09 11:15:22 -03:00
test_versions.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00