]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-volume: fix test_setup_device_device_name_is_none
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 20 Nov 2020 10:41:28 +0000 (11:41 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Fri, 20 Nov 2020 10:46:51 +0000 (11:46 +0100)
Let's call this function by using the same syntax than other tests.
This will make it work with py2 in nautilus branch.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py

index 993e721f107abd44d0e649f7b26beae686c1ad5e..70915a0fe03af9a57b0bd2a7fbd80c7601df7d42 100644 (file)
@@ -117,7 +117,7 @@ class TestPrepare(object):
             assert expected in str(error.value)
 
     def test_setup_device_device_name_is_none(self):
-        result = lvm.prepare.Prepare.setup_device(self=None, device_type='data', device_name=None, tags={'ceph.type': 'data'}, size=0, slots=None)
+        result = lvm.prepare.Prepare([]).setup_device(device_type='data', device_name=None, tags={'ceph.type': 'data'}, size=0, slots=None)
         assert result == ('', '', {'ceph.type': 'data'})
 
     @patch('ceph_volume.api.lvm.Volume.set_tags')