Skip to content

Commit fafe4b2

Browse files
committed
Fix iwd test - service interface inheritance
1 parent 20f6cb3 commit fafe4b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/widget/test_iwd.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,18 @@ def UnregisterAgent(self, path: "o") -> None: # noqa: F821, N802
147147
pass
148148

149149

150+
class IWDRoot(ServiceInterface):
151+
def __init__(self):
152+
super().__init__("test.qtile_extras.root")
153+
154+
150155
class IWDService(Thread):
151156
"""Class that runs fake IWD service in a thread."""
152157

153158
async def start_server(self):
154159
"""Connects to the bus and publishes 3 interfaces."""
155160
bus = await MessageBus().connect()
156-
root = ServiceInterface("test.qtile_extras.root")
161+
root = IWDRoot()
157162
bus.export("/", root)
158163

159164
iwd_root = "/net/connman/iwd"

0 commit comments

Comments
 (0)