@@ -216,9 +216,9 @@ def _create_users(self, num_of_users):
216216
217217 @override_waffle_flag (ENABLE_NOTIFICATIONS , active = True )
218218 @ddt .data (
219- (settings .NOTIFICATION_CREATION_BATCH_SIZE , 12 , 3 ),
220- (settings .NOTIFICATION_CREATION_BATCH_SIZE + 10 , 14 , 5 ),
221- (settings .NOTIFICATION_CREATION_BATCH_SIZE - 10 , 12 , 3 ),
219+ (settings .NOTIFICATION_CREATION_BATCH_SIZE , 10 , 3 ),
220+ (settings .NOTIFICATION_CREATION_BATCH_SIZE + 10 , 12 , 5 ),
221+ (settings .NOTIFICATION_CREATION_BATCH_SIZE - 10 , 10 , 3 ),
222222 )
223223 @ddt .unpack
224224 def test_notification_is_send_in_batch (self , creation_size , prefs_query_count , notifications_query_count ):
@@ -268,7 +268,7 @@ def test_preference_not_created_for_default_off_preference(self):
268268 "username" : "Test Author"
269269 }
270270 with override_waffle_flag (ENABLE_NOTIFICATIONS , active = True ):
271- with self .assertNumQueries (12 ):
271+ with self .assertNumQueries (10 ):
272272 send_notifications (user_ids , str (self .course .id ), notification_app , notification_type ,
273273 context , "http://test.url" )
274274
@@ -288,7 +288,7 @@ def test_preference_created_for_default_on_preference(self):
288288 "replier_name" : "Replier Name"
289289 }
290290 with override_waffle_flag (ENABLE_NOTIFICATIONS , active = True ):
291- with self .assertNumQueries (14 ):
291+ with self .assertNumQueries (12 ):
292292 send_notifications (user_ids , str (self .course .id ), notification_app , notification_type ,
293293 context , "http://test.url" )
294294
0 commit comments