Skip to content

Commit d7b7e04

Browse files
committed
Update conn object from fixture
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent cd2d18f commit d7b7e04

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/unit/plugins/modules/cm_service_config/test_cm_service_config.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ def test_missing_required(conn, module_args):
3838

3939

4040
def test_present_invalid_parameter(conn, module_args):
41-
conn.update(
42-
parameters=dict(example="Example"),
41+
module_args(
42+
{
43+
**conn,
44+
"parameters": dict(example="Example"),
45+
}
4346
)
44-
module_args(conn)
4547

4648
with pytest.raises(
4749
AnsibleFailJson, match="Unknown configuration attribute 'example'"

0 commit comments

Comments
 (0)