1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-17 01:11:28 +00:00

nmcli: Fix yaml formatting

This commit is contained in:
Manuel Gayer 2021-08-31 17:49:57 +02:00
parent c61581ae32
commit 7bbc0bfee7
2 changed files with 15 additions and 18 deletions

View file

@ -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']