mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-24 12:55:24 +00:00
Those need the same adjustments
This commit is contained in:
@@ -40,7 +40,7 @@ class preferencesTest(unittest.TestCase):
|
||||
self.prefs.set('PreventInvitations', 0)
|
||||
notset = self.prefs.get_settings('')['Calendar']['PreventInvitations']
|
||||
self.assertEqual(notset, 0)
|
||||
self.prefs.set('enablePreventInvitations', 0)
|
||||
self.prefs.set('enablePreventInvitations', '0')
|
||||
isset = self.prefs.get_settings('')['Calendar']['PreventInvitations']
|
||||
self.assertEqual(isset, 1)
|
||||
|
||||
|
||||
@@ -73,9 +73,9 @@ class sieveTest(unittest.TestCase):
|
||||
"days": preferences.daysBetweenResponseList[daysSelect],
|
||||
}
|
||||
|
||||
filterAdd = {"Vacation":1,
|
||||
filterAdd = {"Vacation":"1",
|
||||
"autoReplyText": vacation_msg,
|
||||
"daysBetweenResponse": daysSelect,
|
||||
"daysBetweenResponse": "%d" % daysSelect,
|
||||
"autoReplyEmailAddresses": self.user_email,
|
||||
}
|
||||
|
||||
@@ -94,11 +94,11 @@ class sieveTest(unittest.TestCase):
|
||||
"days": preferences.daysBetweenResponseList[daysSelect],
|
||||
}
|
||||
|
||||
filterAdd = {"Vacation":1,
|
||||
filterAdd = {"Vacation":"1",
|
||||
"autoReplyText": vacation_msg,
|
||||
"daysBetweenResponse": daysSelect,
|
||||
"autoReplyEmailAddresses": self.user_email,
|
||||
"ignoreLists": 1,
|
||||
"ignoreLists": "1",
|
||||
}
|
||||
|
||||
self.prefs.set(filterAdd)
|
||||
@@ -112,7 +112,7 @@ class sieveTest(unittest.TestCase):
|
||||
|
||||
sieveScript = sieve_simple_forward % { "redirect_mailaddr": redirect_mailaddr }
|
||||
|
||||
filterAdd = { "Forward": 1,
|
||||
filterAdd = { "Forward": "1",
|
||||
"forwardAddress": redirect_mailaddr,
|
||||
}
|
||||
|
||||
@@ -126,9 +126,9 @@ class sieveTest(unittest.TestCase):
|
||||
|
||||
sieveScript = sieve_forward_keep % { "redirect_mailaddr": redirect_mailaddr }
|
||||
|
||||
filterAdd = { "Forward": 1,
|
||||
filterAdd = { "Forward": "1",
|
||||
"forwardAddress": redirect_mailaddr,
|
||||
"keepCopy": 1,
|
||||
"keepCopy": "1",
|
||||
}
|
||||
|
||||
self.prefs.set(filterAdd)
|
||||
|
||||
Reference in New Issue
Block a user