manila/manila/tests/db
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
..
migrations Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
sqlalchemy Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
__init__.py Files with no code must be left completely empty 2016-09-28 17:00:30 +07:00
fakes.py Only allow IP access type for CephFS NFS 2019-03-20 18:42:01 -04:00
test_api.py Remove unnecessary setUp function in testcase 2017-03-30 18:50:49 +08:00
test_migration.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00