[at-spi2-core: 45/47] session_manager(): During teardown, reset mock session to its starting state
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 45/47] session_manager(): During teardown, reset mock session to its starting state
- Date: Wed, 13 Jul 2022 03:08:30 +0000 (UTC)
commit d8004f383f502d12c67359dff47cfd6a3e05322b
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jul 12 21:13:53 2022 -0500
session_manager(): During teardown, reset mock session to its starting state
tests/registryd/conftest.py | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/tests/registryd/conftest.py b/tests/registryd/conftest.py
index 0729b3c8..a80af69f 100644
--- a/tests/registryd/conftest.py
+++ b/tests/registryd/conftest.py
@@ -52,6 +52,8 @@ def session_manager():
#
# See the ci/run-registryd-tests.sh script to see how that environment is set up.
+ import time
+
bus = dbus.SessionBus()
mock_session = bus.get_object('org.gnome.SessionManager', '/org/gnome/SessionManager')
@@ -61,6 +63,9 @@ def session_manager():
# Tell all session clients to terminate
mock_session.Logout(0, dbus_interface='org.gnome.SessionManager')
+ # Reset mock session back to its starting state
+ mock_session.Reset(dbus_interface='org.freedesktop.DBus.Mock')
+
@pytest.fixture
def registry(main_loop, session_manager):
a11y_address = get_accesssibility_bus_address()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]