]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: pytest: Unconditionally mock the rados objects
authorSebastian Wagner <sebastian.wagner@suse.com>
Wed, 26 Aug 2020 08:39:20 +0000 (10:39 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Wed, 26 Aug 2020 10:36:18 +0000 (12:36 +0200)
commit4cc50496b4ac5f3807414efaa7e9493186eed1f1
tree62cd0d1425c1ce1cd08bbf1aaca646631cdbe7eb
parent3561060c231bbb7ce5410a08a5e6264c9aa4476d
pybind/mgr: pytest: Unconditionally mock the rados objects

Always call `mock_ceph_modules()`. Otherwise we'd need to
split the tox run between modules that need to call
`mock_ceph_modules()` and those that don't

Fixes: https://tracker.ceph.com/issues/47141
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/pybind/mgr/cephadm/__init__.py
src/pybind/mgr/dashboard/__init__.py
src/pybind/mgr/mds_autoscaler/__init__.py
src/pybind/mgr/tests/__init__.py