manila/manila/tests/scheduler/filters
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 Reorganize scheduler and merge code from Oslo incubator 2015-12-01 20:54:17 +00:00
test_availability_zone.py Allow configuring availability_zones in share types 2019-02-13 17:39:48 +00:00
test_base.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_base_host.py Remove unused self.context 2017-05-10 09:25:38 +08:00
test_capabilities.py Allow configuring availability_zones in share types 2019-02-13 17:39:48 +00:00
test_capacity.py Remove unused self.context 2017-05-10 09:25:38 +08:00
test_create_from_snapshot.py Create share from snapshot in another pool or backend 2020-04-09 11:15:22 -03:00
test_driver.py Fix driver filter to not check share_backend_name 2019-03-14 17:27:49 +00:00
test_extra_specs_ops.py Make extra_specs value as case-insensitive 2019-12-11 10:39:08 +09:00
test_ignore_attempted_hosts.py Remove unused self.context 2017-05-10 09:25:38 +08:00
test_json.py Remove unused self.context 2017-05-10 09:25:38 +08:00
test_retry.py Remove unused self.context 2017-05-10 09:25:38 +08:00
test_share_replication.py Disallow scheduling multiple replicas on a given pool 2016-03-11 17:56:01 +00:00