]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: move pvolumes fixture into conftest.py
authorAndrew Schoen <aschoen@redhat.com>
Tue, 31 Jul 2018 13:26:57 +0000 (08:26 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 31 Jul 2018 13:59:54 +0000 (08:59 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 37ed1be08b226a5b3a7a5bb70c4d5d1fd22db5d1)

src/ceph-volume/ceph_volume/tests/api/test_lvm.py
src/ceph-volume/ceph_volume/tests/conftest.py

index 2675ca97f7dc67a30506c0c56f296f02b54fea25..5157189137109f65da23c9285f00993c8b4f9456 100644 (file)
@@ -88,14 +88,6 @@ def volumes(monkeypatch):
     return volumes
 
 
-@pytest.fixture
-def pvolumes(monkeypatch):
-    monkeypatch.setattr(process, 'call', lambda x: ('', '', 0))
-    pvolumes = api.PVolumes()
-    pvolumes._purge()
-    return pvolumes
-
-
 @pytest.fixture
 def volume_groups(monkeypatch):
     monkeypatch.setattr(process, 'call', lambda x: ('', '', 0))
index b1f858138ea615e306bf83916fca94ec653f16b1..d93fc544651c040770acec49a523a4d273f14773 100644 (file)
@@ -117,6 +117,14 @@ def volume_groups(monkeypatch):
     return vgs
 
 
+@pytest.fixture
+def pvolumes(monkeypatch):
+    monkeypatch.setattr('ceph_volume.process.call', lambda x: ('', '', 0))
+    pvolumes = lvm_api.PVolumes()
+    pvolumes._purge()
+    return pvolumes
+
+
 @pytest.fixture
 def is_root(monkeypatch):
     """