[gnome-bluetooth/wip/hadess/more-bt-battery-info: 2/2] tests: Add "Serial" to UPower Bluetooth devices
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/wip/hadess/more-bt-battery-info: 2/2] tests: Add "Serial" to UPower Bluetooth devices
- Date: Mon, 5 Sep 2022 16:13:06 +0000 (UTC)
commit f1d705310e2e1bb91c59add87de41993fd175d7f
Author: Bastien Nocera <hadess hadess net>
Date: Mon Sep 5 18:12:18 2022 +0200
tests: Add "Serial" to UPower Bluetooth devices
The serial for Bluetooth devices is the Bluetooth address, make sure to
export it.
tests/integration-test.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tests/integration-test.py b/tests/integration-test.py
index a3648c25..62efc241 100755
--- a/tests/integration-test.py
+++ b/tests/integration-test.py
@@ -622,6 +622,7 @@ class Tests(dbusmock.DBusTestCase):
'org.freedesktop.UPower.Device',
{
'NativePath': dbus.String('/org/bluez/hci0/dev_11_22_33_44_55_66'),
+ 'Serial': dbus.String('11:22:33:44:55:66', variant_level=1),
'Type': dbus.UInt32(5, variant_level=1),
'State': dbus.UInt32(2, variant_level=1),
'Percentage': dbus.Double(66, variant_level=1),
@@ -644,6 +645,7 @@ class Tests(dbusmock.DBusTestCase):
'org.freedesktop.UPower.Device',
{
'NativePath': dbus.String('/org/bluez/hci0/dev_11_22_33_44_55_67'),
+ 'Serial': dbus.String('11:22:33:44:55:67', variant_level=1),
'Type': dbus.UInt32(5, variant_level=1),
'State': dbus.UInt32(2, variant_level=1),
'Percentage': dbus.Double(55, variant_level=1),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]