mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-17 01:11:28 +00:00
[PR #11342/266d9d3f backport][stable-12] batch 2 - update Python idiom to 3.7 using pyupgrade (#11345)
batch 2 - update Python idiom to 3.7 using pyupgrade (#11342)
* batch 2 - update Python idiom to 3.7 using pyupgrade
* Apply suggestions from code review
(cherry picked from commit 266d9d3fb0)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
213dc22217
commit
303bac630a
19 changed files with 64 additions and 70 deletions
|
|
@ -245,9 +245,7 @@ class TestPermanentParams(ModuleTestCase):
|
|||
with patch("ansible_collections.community.general.plugins.modules.modprobe.Modprobe.modprobe_files"):
|
||||
modprobe.modprobe_files = ["/etc/modprobe.d/dummy1.conf", "/etc/modprobe.d/dummy2.conf"]
|
||||
|
||||
assert modprobe.permanent_params == set(
|
||||
["numdummies=4", "dummy_parameter1=6", "dummy_parameter2=5"]
|
||||
)
|
||||
assert modprobe.permanent_params == {"numdummies=4", "dummy_parameter1=6", "dummy_parameter2=5"}
|
||||
|
||||
def test_module_permanent_params_empty(self):
|
||||
files_content = ["", ""]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue