From 40e0f37d8544c1bee829bd2646096ed794fadf36 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 24 Oct 2018 10:54:48 -0400 Subject: [PATCH] ceph-volume tests allow **kw when monkeypatching Signed-off-by: Alfredo Deza (cherry picked from commit 04e51c956eadcbd38f39ec3dd4b78009d2cd4a70) --- src/ceph-volume/ceph_volume/tests/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ceph-volume/ceph_volume/tests/conftest.py b/src/ceph-volume/ceph_volume/tests/conftest.py index 4af388662d76d..cf7dd5d8fc55f 100644 --- a/src/ceph-volume/ceph_volume/tests/conftest.py +++ b/src/ceph-volume/ceph_volume/tests/conftest.py @@ -137,7 +137,7 @@ def conf_ceph_stub(monkeypatch, tmpfile): @pytest.fixture def volumes(monkeypatch): - monkeypatch.setattr('ceph_volume.process.call', lambda x: ('', '', 0)) + monkeypatch.setattr('ceph_volume.process.call', lambda x, **kw: ('', '', 0)) volumes = lvm_api.Volumes() volumes._purge() return volumes @@ -145,7 +145,7 @@ def volumes(monkeypatch): @pytest.fixture def volume_groups(monkeypatch): - monkeypatch.setattr('ceph_volume.process.call', lambda x: ('', '', 0)) + monkeypatch.setattr('ceph_volume.process.call', lambda x, **kw: ('', '', 0)) vgs = lvm_api.VolumeGroups() vgs._purge() return vgs @@ -160,7 +160,7 @@ def stub_vgs(monkeypatch, volume_groups): @pytest.fixture def pvolumes(monkeypatch): - monkeypatch.setattr('ceph_volume.process.call', lambda x: ('', '', 0)) + monkeypatch.setattr('ceph_volume.process.call', lambda x, **kw: ('', '', 0)) pvolumes = lvm_api.PVolumes() pvolumes._purge() return pvolumes -- 2.39.5