From dd29fbcb3b7da296196731d66b0b3048b7bff2c2 Mon Sep 17 00:00:00 2001 From: rsuplina Date: Fri, 6 Sep 2024 12:15:45 +0100 Subject: [PATCH] Fix linting error Signed-off-by: rsuplina --- .../modules/iam_role_info/test_iam_role_info.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/unit/plugins/modules/iam_role_info/test_iam_role_info.py b/tests/unit/plugins/modules/iam_role_info/test_iam_role_info.py index 4d3833a..81d71b1 100644 --- a/tests/unit/plugins/modules/iam_role_info/test_iam_role_info.py +++ b/tests/unit/plugins/modules/iam_role_info/test_iam_role_info.py @@ -25,17 +25,21 @@ ) def test_get_single_role_details(): - setup_module_args({ - "name": "crn:iam:us-west-1:role:ClassicClustersCreator" - }) + setup_module_args({"name": "crn:iam:us-west-1:role:ClassicClustersCreator"}) with pytest.raises(AnsibleExitJson) as e: iam_role_info.main() def test_get_multiple_role_details(): - setup_module_args({ - "name": ["crn:iam:us-west-1:role:ClassicClustersCreator","crn:iam:us-west-1:role:EnvironmentCreator"] - }) + + setup_module_args( + { + "name": [ + "crn:iam:us-west-1:role:ClassicClustersCreator", + "crn:iam:us-west-1:role:EnvironmentCreator", + ] + } + ) with pytest.raises(AnsibleExitJson) as e: iam_role_info.main()