[gnome-bluetooth/wip/hadess/lib-changes: 13/24] tests: Add helper to print the devices GListStore




commit 66279ed4256493b2afde888cbfc5bfa834806a92
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]