mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
network: Minor refactoring in a test
Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
213cf16f8d
commit
7ee2b385c9
@ -135,10 +135,11 @@ def fixture_pppoe_uuid(network):
|
||||
def test_get_connection_list(network):
|
||||
"""Check that we can get a list of available connections."""
|
||||
connections = network.get_connection_list()
|
||||
connection_names = [conn['name'] for conn in connections]
|
||||
|
||||
assert 'plinth_test_eth' in [x['name'] for x in connections]
|
||||
assert 'plinth_test_wifi' in [x['name'] for x in connections]
|
||||
assert 'plinth_test_pppoe' in [x['name'] for x in connections]
|
||||
assert 'plinth_test_eth' in connection_names
|
||||
assert 'plinth_test_wifi' in connection_names
|
||||
assert 'plinth_test_pppoe' in connection_names
|
||||
|
||||
|
||||
def test_get_connection(network, ethernet_uuid, wifi_uuid):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user