mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
nmcli: Fix yaml formatting
This commit is contained in:
@@ -2237,13 +2237,11 @@ def test_create_gsm(mocked_generic_connection_create, capfd):
|
||||
assert args[0][6] == 'non_existent_nw_device'
|
||||
|
||||
args_text = list(map(to_text, args[0]))
|
||||
for param in [
|
||||
'connection.interface-name', 'gsm_non_existant',
|
||||
'gsm.apn', 'internet.telekom',
|
||||
'gsm.username', 't-mobile',
|
||||
'gsm.password', 'tm',
|
||||
'gsm.pin', '1234',
|
||||
]:
|
||||
for param in ['connection.interface-name', 'gsm_non_existant',
|
||||
'gsm.apn', 'internet.telekom',
|
||||
'gsm.username', 't-mobile',
|
||||
'gsm.password', 'tm',
|
||||
'gsm.pin', '1234',]:
|
||||
assert param in args_text
|
||||
|
||||
out, err = capfd.readouterr()
|
||||
@@ -2270,10 +2268,8 @@ def test_gsm_mod(mocked_generic_connection_modify, capfd):
|
||||
assert args[0][3] == 'non_existent_nw_device'
|
||||
|
||||
args_text = list(map(to_text, args[0]))
|
||||
for param in [
|
||||
'gsm.username', 't-mobile',
|
||||
'gsm.password', 'tm',
|
||||
]:
|
||||
for param in ['gsm.username', 't-mobile',
|
||||
'gsm.password', 'tm',]:
|
||||
assert param in args_text
|
||||
|
||||
out, err = capfd.readouterr()
|
||||
@@ -2293,4 +2289,4 @@ def test_gsm_connection_unchanged(mocked_gsm_connection_unchanged, capfd):
|
||||
out, err = capfd.readouterr()
|
||||
results = json.loads(out)
|
||||
assert not results.get('failed')
|
||||
assert not results['changed']
|
||||
assert not results['changed']
|
||||
|
||||
Reference in New Issue
Block a user