[gnome-settings-daemon] power tests: Reset session and screensaver for each test
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power tests: Reset session and screensaver for each test
- Date: Tue, 22 Jan 2013 15:18:31 +0000 (UTC)
commit 82f141da77a0133a36249662253039d0b6aac6d4
Author: Martin Pitt <martinpitt gnome org>
Date: Tue Jan 22 16:16:17 2013 +0100
power tests: Reset session and screensaver for each test
We forgot to reset all changed gsettings in tearDown(), which might break test
isolation.
plugins/power/test.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index bf463be..ca1df5c 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -108,8 +108,9 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
# reset all changed gsettings, so that tests are independent from each
# other
- for k in self.settings_gsd_power.list_keys():
- self.settings_gsd_power.reset(k)
+ for schema in [self.settings_gsd_power, self.settings_session, self.settings_screensaver]:
+ for k in schema.list_keys():
+ schema.reset(k)
Gio.Settings.sync()
def get_status(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]