manila/manila/tests/api/v1
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 Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
stubs.py Transform share and share servers statuses to lowercase 2015-06-02 13:35:44 +03:00
test_limits.py Add new quota for share replicas 2020-04-06 13:17:30 +00:00
test_scheduler_stats.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_security_service.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_share_manage.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_share_metadata.py Refactor share metadata tests to use DB 2016-01-08 02:51:36 +00:00
test_share_servers.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_share_snapshots.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_share_types_extra_specs.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_share_unmanage.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_shares.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00