]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: refactor ceph-disk_member unittests
authorJan Fajerski <jfajerski@suse.com>
Tue, 30 Jul 2019 11:29:22 +0000 (13:29 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 2 Aug 2019 09:40:46 +0000 (11:40 +0200)
commit33335102995a6ae3b7d80b5e07693275ed70f214
tree1b66d51193ec98652a8aad8b97d7544f3c9bec48
parentca95ada3d83f44a29fa49112ee0bd1cd3b62c0ca
ceph-volume: refactor ceph-disk_member unittests

This adds a parameterized fixture as input to the tests. Should make
writing new tests easier since only fixture parameters need to be added.
In the future we should be able to reuse the fixtures to build other
fixtures and reuse the parametrization.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit f42287c3416ad09c112e64756f5051c5c13aa344)
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/util/test_device.py