From a86b164228a43e897c338d6f362446410048a2f2 Mon Sep 17 00:00:00 2001 From: Luc Charland Date: Fri, 17 Apr 2015 10:38:40 -0400 Subject: [PATCH] uses a dict instead of a string of a dict for preventInvitationsTest --- Tests/Integration/test-preferences.py | 2 +- Tests/Integration/test-prevent-invitations.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Integration/test-preferences.py b/Tests/Integration/test-preferences.py index e49e82dd2..a13eb16be 100644 --- a/Tests/Integration/test-preferences.py +++ b/Tests/Integration/test-preferences.py @@ -46,7 +46,7 @@ class preferencesTest(unittest.TestCase): def testPreventInvitationsWhiteList(self): """Add to the PreventInvitations Whitelist""" - self.prefs.set("whiteList", white_listed_attendee) + self.prefs.set("whiteList", simplejson.dumps(white_listed_attendee)) whitelist = self.prefs.get_settings('Calendar')['PreventInvitationsWhitelist'] self.assertEqual(whitelist, white_listed_attendee) diff --git a/Tests/Integration/test-prevent-invitations.py b/Tests/Integration/test-prevent-invitations.py index a1ec81b1f..4493597db 100755 --- a/Tests/Integration/test-prevent-invitations.py +++ b/Tests/Integration/test-prevent-invitations.py @@ -56,7 +56,7 @@ class preventInvitationsTest(unittest.TestCase): """ Set PreventInvitation add to WhiteList and accept the Invitation""" #- First, add the Organiser to the Attendee's whitelist self.prefs.set('enablePreventInvitations', '0') - self.prefs.set("whiteList", white_listed_attendee) + self.prefs.set("whiteList", simplejson.dumps(white_listed_attendee)) whitelist = self.prefs.get_settings('Calendar')['PreventInvitationsWhitelist'] self.assertEqual(whitelist, white_listed_attendee)