]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume tests refactor lvm api import in conftest
authorAlfredo Deza <adeza@redhat.com>
Wed, 4 Oct 2017 10:42:01 +0000 (06:42 -0400)
committerAlfredo Deza <adeza@redhat.com>
Fri, 27 Oct 2017 11:14:01 +0000 (07:14 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit a00aff7066fe6a679498ac8a02ec22ef29feced3)

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

index 784a7c2f71bd6afc27f3dae161314485af544f68..764b0f4d74b1b80afc5d52b6fe48022312ac74fd 100644 (file)
@@ -1,5 +1,5 @@
 import pytest
-from ceph_volume.devices.lvm import api
+from ceph_volume.api import lvm as lvm_api
 
 
 class Capture(object):
@@ -33,7 +33,7 @@ def capture():
 @pytest.fixture
 def volumes(monkeypatch):
     monkeypatch.setattr('ceph_volume.process.call', lambda x: ('', '', 0))
-    volumes = api.Volumes()
+    volumes = lvm_api.Volumes()
     volumes._purge()
     return volumes
 
@@ -41,7 +41,7 @@ def volumes(monkeypatch):
 @pytest.fixture
 def volume_groups(monkeypatch):
     monkeypatch.setattr('ceph_volume.process.call', lambda x: ('', '', 0))
-    vgs = api.VolumeGroups()
+    vgs = lvm_api.VolumeGroups()
     vgs._purge()
     return vgs