[at-spi2-core: 1/17] Return the session manager mock from its fixture, not a dummy object
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core: 1/17] Return the session manager mock from its fixture, not a dummy object
- Date: Wed, 12 Oct 2022 00:58:50 +0000 (UTC)
commit ccf454551a5428df5b9e8decd39c8edb6e6517b7
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 1 14:27:41 2022 -0500
Return the session manager mock from its fixture, not a dummy object
The mock session doesn't get used by the tests themselves, just by the
fixture's setup and its teardown, but it may be interesting to use it
later to frob the session's state.
tests/registryd/conftest.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/tests/registryd/conftest.py b/tests/registryd/conftest.py
index d3b20145..9ce267d9 100644
--- a/tests/registryd/conftest.py
+++ b/tests/registryd/conftest.py
@@ -56,8 +56,7 @@ def session_manager():
mock_session.SetSessionRunning(True, dbus_interface='org.freedesktop.DBus.Mock')
- # return a dummy object as a fixture
- yield object()
+ yield mock_session
# Tell all session clients to terminate
mock_session.Logout(0, dbus_interface='org.gnome.SessionManager')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]