]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix test_setup_device_device_name_is_none 38199/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 20 Nov 2020 10:41:28 +0000 (11:41 +0100)
committerJan Fajerski <jfajerski@suse.com>
Mon, 23 Nov 2020 13:18:46 +0000 (14:18 +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>
(cherry picked from commit 02e6f33f08e392513aaded4bde61cf15b2fcfb0c)

src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py

index af3300018cf829747b38e4ec9443ef2785336e92..2bd59ae0c86ca0921375511df48b6350c3e28b82 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')