Table of Contents
Test Report
View CI Run 2391 | Commit c1d6575
🧪 Test Report
Generated on 2025-08-17 14:07:43 CEST
🧾 General Info
- duration: 5.485975503921509
- root: /workspace/tligui_y/slic
- environment: {}
📋 Summary
- Error: 7
- Total: 7
- Collected: 7
🔎 Tests
❌ Error (7)
-
📄 test_utils_dbusnotify.py
↳ Function: test_notify_create
-
❌ Test 1
📌 Setup phase
duration:
0.32618488697335124outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlog:
- name: dbus.connection msg: Unable to set arguments ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) according to signature 'sssss': <class 'TypeError'>: Expected a string or unicode object args: None levelname: ERROR levelno: 40 pathname: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py filename: connection.py module: connection exc_info: None exc_text: None stack_info: None lineno: 628 funcName: call_blocking created: 1755432460.680214 msecs: 680.2139282226562 relativeCreated: 5732.745170593262 thread: 140548551276032 threadName: MainThread processName: MainProcess process: 1873longrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.0003587440587580204outcome:
passed
↳ Function: test_notify_update
-
❌ Test 2
📌 Setup phase
duration:
0.0002937549725174904outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlongrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.00018486706539988518outcome:
passed
↳ Function: test_get_server_info
-
❌ Test 3
📌 Setup phase
duration:
0.0001906082034111023outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlongrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.00019226083531975746outcome:
passed
↳ Function: test_get_capabilities
-
❌ Test 4
📌 Setup phase
duration:
0.0001827985979616642outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlongrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.0002311919815838337outcome:
passed
↳ Function: test_notify_and_close
-
❌ Test 5
📌 Setup phase
duration:
0.00020575104281306267outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlongrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.0002227979712188244outcome:
passed
↳ Function: test_notify_invalid_value
-
❌ Test 6
📌 Setup phase
duration:
0.00019211787730455399outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlongrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.0002233288250863552outcome:
passed
↳ Function: test_convert_dbus_strings
-
❌ Test 7
📌 Setup phase
duration:
0.00022784899920225143outcome:
failedcrash:
path: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeError: Expected a string or unicode objecttraceback:
- path: tests/test_utils_dbusnotify.py lineno: 44 message: None - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 72 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py lineno: 141 message: in __call__ - path: .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py lineno: 625 message: TypeErrorlongrepr:
@pytest.fixture(scope="session", autouse=True) def _dbus_session_notifications(): # 1) lancer un bus de session _DBusEnv.start_session_bus() # 2) démarrer le service Notifications (ARGUMENTS POSITIONNELS) p_mock = _DBusEnv.spawn_server( 'org.freedesktop.Notifications', '/org/freedesktop/Notifications', 'org.freedesktop.Notifications', False, # system_bus None # stdout ) # 3) récupérer l'objet via le bus bus = _DBusEnv.get_dbus(False) # False => session bus obj = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') mock = dbus.Interface(obj, MOCK_IFACE) # 4) définir les méthodes minimales > mock.AddMethod('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) tests/test_utils_dbusnotify.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:72: in __call__ return self._proxy_method(*args, **keywords) .pixi/envs/default/lib/python3.8/site-packages/dbus/proxies.py:141: in __call__ return self._connection.call_blocking(self._named_service, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <dbus.bus.BusConnection object at 0x7fd3ad2ad680> bus_name = dbus.String(':1.2'), object_path = '/org/freedesktop/Notifications' dbus_interface = 'org.freedesktop.DBus.Mock', method = 'AddMethod' signature = 'sssss' args = ('org.freedesktop.Notifications', 'GetServerInformation', '', 'ssss', ['pytest-notify', 'pytest-vendor', '1.0', '1.2']) timeout = -1.0, byte_arrays = False, kwargs = {} get_args_opts = {'byte_arrays': False} message = <dbus.lowlevel.MethodCallMessage path: n/a, iface: n/a, member: n/a dest: n/a> def call_blocking(self, bus_name, object_path, dbus_interface, method, signature, args, timeout=-1.0, byte_arrays=False, **kwargs): """Call the given method, synchronously. :Since: 0.81.0 """ if object_path == LOCAL_PATH: raise DBusException('Methods may not be called on the reserved ' 'path %s' % LOCAL_PATH) if dbus_interface == LOCAL_IFACE: raise DBusException('Methods may not be called on the reserved ' 'interface %s' % LOCAL_IFACE) # no need to validate other args - MethodCallMessage ctor will do get_args_opts = dict(byte_arrays=byte_arrays) if 'utf8_strings' in kwargs: raise TypeError("unexpected keyword argument 'utf8_strings'") message = MethodCallMessage(destination=bus_name, path=object_path, interface=dbus_interface, method=method) # Add the arguments to the function try: > message.append(signature=signature, *args) E TypeError: Expected a string or unicode object .pixi/envs/default/lib/python3.8/site-packages/dbus/connection.py:625: TypeError📌 Teardown phase
duration:
0.0002737129107117653outcome:
passed
-
📚 Collected files
✅ (1 tests)
-
✅
- Outcome:
passed - result:
- nodeid: tests/test_utils_dbusnotify.py type: Module - Outcome:
✅ tests (3 tests)
-
✅ tests/test_utils_dbusnotify.py
- Outcome:
passed - result:
- nodeid: tests/test_utils_dbusnotify.py::DBusTestCase type: UnitTestCase - nodeid: tests/test_utils_dbusnotify.py::_DBusEnv type: UnitTestCase - nodeid: tests/test_utils_dbusnotify.py::test_notify_create type: Function lineno: 62 - nodeid: tests/test_utils_dbusnotify.py::test_notify_update type: Function lineno: 72 - nodeid: tests/test_utils_dbusnotify.py::test_get_server_info type: Function lineno: 83 - nodeid: tests/test_utils_dbusnotify.py::test_get_capabilities type: Function lineno: 93 - nodeid: tests/test_utils_dbusnotify.py::test_notify_and_close type: Function lineno: 107 - nodeid: tests/test_utils_dbusnotify.py::test_notify_invalid_value type: Function lineno: 118 - nodeid: tests/test_utils_dbusnotify.py::test_convert_dbus_strings type: Function lineno: 122-
✅ tests/test_utils_dbusnotify.py::DBusTestCase
- Outcome:
passed - result:
[] - Outcome:
-
✅ tests/test_utils_dbusnotify.py::_DBusEnv
- Outcome:
passed - result:
[] - Outcome:
- Outcome:
⚠️ Warnings
Warnings nº1
message: invalid escape sequence \-
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/bsread/h5.py
lineno: 207
Warnings nº2
message: The module numpy.dual is deprecated. Instead of using dual, use the functions directly from numpy or scipy.
category: DeprecationWarning
when: collect
filename: /workspace/tligui_y/slic/.pixi/envs/default/lib/python3.8/site-packages/scipy/fft/__init__.py
lineno: 97