From 02e6f33f08e392513aaded4bde61cf15b2fcfb0c Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 20 Nov 2020 11:41:28 +0100 Subject: [PATCH] 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 --- src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 993e721f107..70915a0fe03 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')