cinder/cinder/tests/unit/backup/drivers
Doug Hellmann 521057dd97
drop use of pkg_resources
Importing pkg_resources scans all of the installed modules for data
that won't be used. Switch to using importlib.metdata, which more
efficiently loads the metadata for a package.

Since the name of the module where importlib.metadata is found depends
on the version of python, mocking a function in the library is more
complicated. Provide a wrapper in the module that uses
importlib.metadata.version() so its tests can examine behavior using
different versions via mocks.

The distutils package in the standard library is deprecated. Use the
packaging library for parsing version strings into something that can
be compared.

Change-Id: I45d0851cdb5f241ff8dc774dc22123b410502cd9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-07-26 09:16:19 -04:00
..
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_backup_ceph.py Tests: Make tests less random 2020-05-08 11:22:02 -04:00
test_backup_driver_base.py Tests: Make tests less random 2020-05-08 11:22:02 -04:00
test_backup_glusterfs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_backup_google.py drop use of pkg_resources 2020-07-26 09:16:19 -04:00
test_backup_nfs.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_backup_posix.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_backup_swift.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00
test_backup_tsm.py Move unit test code under tests/unit/ 2020-04-30 18:13:54 -04:00