Correct python black rules
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
This commit is contained in:

committed by
Thomas Haller

parent
c8b13dc92f
commit
1f5c7f7d81
@@ -562,9 +562,7 @@ class NMStubServer:
|
|||||||
def setProperty(self, path, propname, value, iface_name=None):
|
def setProperty(self, path, propname, value, iface_name=None):
|
||||||
if iface_name is None:
|
if iface_name is None:
|
||||||
iface_name = ""
|
iface_name = ""
|
||||||
self.op_SetProperties(
|
self.op_SetProperties([(path, [(iface_name, [(propname, value)])])])
|
||||||
[(path, [(iface_name, [(propname, value),]),]),]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -1161,7 +1159,7 @@ class TestNmcli(NmTestBase):
|
|||||||
self.srv.op_AddObj("WifiAp", device="wlan1")
|
self.srv.op_AddObj("WifiAp", device="wlan1")
|
||||||
|
|
||||||
self.srv.addConnection(
|
self.srv.addConnection(
|
||||||
{"connection": {"type": "802-3-ethernet", "id": "con-1",},}
|
{"connection": {"type": "802-3-ethernet", "id": "con-1"}}
|
||||||
)
|
)
|
||||||
|
|
||||||
@nm_test
|
@nm_test
|
||||||
|
@@ -11,11 +11,11 @@ s_con = dbus.Dictionary(
|
|||||||
)
|
)
|
||||||
|
|
||||||
s_wifi = dbus.Dictionary(
|
s_wifi = dbus.Dictionary(
|
||||||
{"ssid": dbus.ByteArray("best-wifi".encode("utf-8")), "mode": "infrastructure",}
|
{"ssid": dbus.ByteArray("best-wifi".encode("utf-8")), "mode": "infrastructure"}
|
||||||
)
|
)
|
||||||
|
|
||||||
s_wsec = dbus.Dictionary(
|
s_wsec = dbus.Dictionary(
|
||||||
{"key-mgmt": "wpa-psk", "auth-alg": "open", "psk": "super-secret-password",}
|
{"key-mgmt": "wpa-psk", "auth-alg": "open", "psk": "super-secret-password"}
|
||||||
)
|
)
|
||||||
|
|
||||||
s_ip4 = dbus.Dictionary({"method": "auto"})
|
s_ip4 = dbus.Dictionary({"method": "auto"})
|
||||||
|
Reference in New Issue
Block a user