tests/library: remove duplicate parameter

Remove duplicate fake_params parameter as it's already defined later
as a dict (instead of an empty list).

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/6196/head
Dimitri Savineau 2021-01-13 21:32:33 -05:00 committed by Guillaume Abrioux
parent e66f12d138
commit 5a14510354
1 changed files with 2 additions and 3 deletions

View File

@ -8,19 +8,18 @@ fake_container_image = 'docker.io/ceph/daemon:latest'
class TestCephDashboardUserModule(object):
def setup_method(self):
self.fake_params = []
self.fake_binary = 'ceph'
self.fake_cluster = 'ceph'
self.fake_name = 'foo'
self.fake_user = 'foo'
self.fake_password = 'bar'
self.fake_module = MagicMock()
self.fake_module.params = self.fake_params
self.fake_roles = ['read-only', 'block-manager']
self.fake_params = {'cluster': self.fake_cluster,
'name': self.fake_user,
'password': self.fake_password,
'roles': self.fake_roles}
self.fake_module = MagicMock()
self.fake_module.params = self.fake_params
def test_create_user(self):
self.fake_module.params = self.fake_params