Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
Signed-off-by: rsuplina <rsuplina@cloudera.com>
  • Loading branch information
rsuplina committed Sep 6, 2024
1 parent 9be6cc1 commit dd29fbc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions tests/unit/plugins/modules/iam_role_info/test_iam_role_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dd29fbc

Please # to comment.