From 5a145103544a0a2e8dc6f4b835be227ed6b5baa5 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Wed, 13 Jan 2021 21:32:33 -0500 Subject: [PATCH] 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 --- tests/library/test_ceph_dashboard_user.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/library/test_ceph_dashboard_user.py b/tests/library/test_ceph_dashboard_user.py index 817748332..e9e8f6e66 100644 --- a/tests/library/test_ceph_dashboard_user.py +++ b/tests/library/test_ceph_dashboard_user.py @@ -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