[gnome-bluetooth/wip/hadess/lib-changes: 5/18] tests: Add helper to print the devices GListStore
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/lib-changes: 5/18] tests: Add helper to print the devices GListStore
- Date: Mon, 29 Nov 2021 15:36:14 +0000 (UTC)
commit d24f710adb662112ae7be85b17094f403ff2ef3e
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 24 17:12:08 2021 +0100
tests: Add helper to print the devices GListStore
tests/integration-test | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/tests/integration-test b/tests/integration-test
index c69d28e1..19f7ce31 100755
--- a/tests/integration-test
+++ b/tests/integration-test
@@ -66,6 +66,10 @@ class OopTests(dbusmock.DBusTestCase):
print("\t" * (treepath.get_depth() - 1), model[treeiter][:], sep="")
model.foreach(print_row)
+ def print_list_store(self, model):
+ for device in model:
+ print(f"{device.get_property('name')}: {device.get_property('address')}")
+
def wait_for_mainloop(self):
ml = GLib.MainLoop()
GLib.timeout_add_seconds(1, ml.quit)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]