]> 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:50:27 +0000 (08:50 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/tests/api/test_lvm.py
src/ceph-volume/ceph_volume/tests/conftest.py

index be3b5c1bd7909f478db26d499f4d3fb248787462..754f5537b66f8ceec0d2db6666a371a9323b2e55 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 fe93d4dbe802025a23979111a26ae30e5c551015..11e1c1a781e0a13ec7fa048e1f959db6e0b3e3a4 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):
     """