From: Guillaume Abrioux Date: Fri, 20 Nov 2020 10:41:28 +0000 (+0100) Subject: ceph-volume: fix test_setup_device_device_name_is_none X-Git-Tag: v16.1.0~506^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38207%2Fhead;p=ceph.git ceph-volume: fix test_setup_device_device_name_is_none 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 --- diff --git a/src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py b/src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py index 993e721f107a..70915a0fe03a 100644 --- a/src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py +++ b/src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py @@ -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')