mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-11 10:12:42 +01:00
auto-t: updated tests to use new list_devices
list_devices() was updated to take an integer rather than a bool for the wait_to_appear argument. This updates any tests that explicily passed True/False as the argument to list_devices.
This commit is contained in:
parent
003c1dbc97
commit
c9b4e41604
@ -61,7 +61,7 @@ class Test(unittest.TestCase):
|
||||
def test_connection_success(self):
|
||||
wd = IWD()
|
||||
|
||||
dev1, dev2 = wd.list_devices()
|
||||
dev1, dev2 = wd.list_devices(2)
|
||||
|
||||
self.client_connect(wd, dev1)
|
||||
|
||||
|
@ -61,7 +61,7 @@ class Test(unittest.TestCase):
|
||||
def test_connection_success(self):
|
||||
wd = IWD()
|
||||
|
||||
dev1, dev2 = wd.list_devices()
|
||||
dev1, dev2 = wd.list_devices(2)
|
||||
|
||||
self.client_connect(wd, dev1)
|
||||
|
||||
|
@ -12,7 +12,7 @@ from iwd import NetworkType
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
def validate_connection(self, wd):
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
@ -13,7 +13,7 @@ from hlrauc import AuthCenter
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
def validate_connection(self, wd):
|
||||
devices = wd.list_devices(True)
|
||||
devices = wd.list_devices(1)
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -12,7 +12,7 @@ from hlrauc import AuthCenter
|
||||
|
||||
class Test(unittest.TestCase):
|
||||
def validate_connection(self, wd):
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -14,7 +14,7 @@ class Test(unittest.TestCase):
|
||||
def validate_connection(self, wd):
|
||||
ssid_to_connect = 'ssidEAP-PEAP-frag'
|
||||
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -14,7 +14,7 @@ class Test(unittest.TestCase):
|
||||
def validate_connection(self, wd):
|
||||
ssid_to_connect = 'ssidEAP-PEAPv0'
|
||||
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -14,7 +14,7 @@ class Test(unittest.TestCase):
|
||||
def validate_connection(self, wd):
|
||||
ssid_to_connect = 'ssidEAP-PEAPv1'
|
||||
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -30,7 +30,7 @@ class Test(unittest.TestCase):
|
||||
'secret123'))
|
||||
wd.register_psk_agent(psk_agent)
|
||||
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -11,7 +11,7 @@ from iwd import NetworkType
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
def validate_connection(self, wd):
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
@ -65,7 +65,7 @@ class TestMFP(unittest.TestCase):
|
||||
psk_agent = PSKAgent( ['secret123', 'secret123', 'secret123'] )
|
||||
wd.register_psk_agent(psk_agent)
|
||||
|
||||
devices = wd.list_devices(True);
|
||||
devices = wd.list_devices(1);
|
||||
self.assertIsNotNone(devices)
|
||||
device = devices[0]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user