silences pytest warning. it complained:`
1: cephadm/tests/fixtures.py:68
1: /var/ssd/ceph/src/pybind/mgr/cephadm/tests/fixtures.py:68: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
1: Use @pytest.fixture instead; they are the same.
1: @pytest.yield_fixture()
Signed-off-by: Kefu Chai <kchai@redhat.com>
yield m
-@pytest.yield_fixture()
+@pytest.fixture()
def cephadm_module():
with with_cephadm_module({}) as m:
yield m
-@pytest.yield_fixture()
+@pytest.fixture()
def rm_util():
with with_cephadm_module({}) as m:
r = RemoveUtil.__new__(RemoveUtil)
yield r
-@pytest.yield_fixture()
+@pytest.fixture()
def osd_obj():
with mock.patch("cephadm.services.osd.RemoveUtil"):
o = OSD(0, mock.MagicMock())