mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-25 14:47:26 +00:00
Cleanup: use super() instead of super(__class__, self) (#11016)
* Address UP008: Use super() instead of super(__class__, self). * Linting.
This commit is contained in:
parent
0c5466de47
commit
74c2c804e5
204 changed files with 390 additions and 401 deletions
|
|
@ -38,7 +38,7 @@ class TestCreateJavaKeystore(ModuleTestCase):
|
|||
|
||||
def setUp(self):
|
||||
"""Setup."""
|
||||
super(TestCreateJavaKeystore, self).setUp()
|
||||
super().setUp()
|
||||
|
||||
orig_exists = os.path.exists
|
||||
self.mock_create_file = patch('ansible_collections.community.general.plugins.modules.java_keystore.create_file')
|
||||
|
|
@ -67,7 +67,7 @@ class TestCreateJavaKeystore(ModuleTestCase):
|
|||
|
||||
def tearDown(self):
|
||||
"""Teardown."""
|
||||
super(TestCreateJavaKeystore, self).tearDown()
|
||||
super().tearDown()
|
||||
self.mock_create_file.stop()
|
||||
self.mock_create_path.stop()
|
||||
self.mock_current_type.stop()
|
||||
|
|
@ -229,7 +229,7 @@ class TestCertChanged(ModuleTestCase):
|
|||
|
||||
def setUp(self):
|
||||
"""Setup."""
|
||||
super(TestCertChanged, self).setUp()
|
||||
super().setUp()
|
||||
self.mock_create_file = patch('ansible_collections.community.general.plugins.modules.java_keystore.create_file')
|
||||
self.mock_current_type = patch('ansible_collections.community.general.plugins.modules.java_keystore.JavaKeystore.current_type')
|
||||
self.mock_run_command = patch('ansible.module_utils.basic.AnsibleModule.run_command')
|
||||
|
|
@ -245,7 +245,7 @@ class TestCertChanged(ModuleTestCase):
|
|||
|
||||
def tearDown(self):
|
||||
"""Teardown."""
|
||||
super(TestCertChanged, self).tearDown()
|
||||
super().tearDown()
|
||||
self.mock_create_file.stop()
|
||||
self.mock_current_type.stop()
|
||||
self.mock_run_command.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue