@@ -205,13 +205,11 @@ def test_accept_notification_sent_on_admin_approval(self, revised_response, admi
205205 delete_mailhog_messages ()
206206 with capture_notifications (passthrough = True ) as notifications :
207207 revised_response .approve (user = admin_user )
208- assert len (notifications ['emits' ]) == 3
208+ assert len (notifications ['emits' ]) == 2
209209 assert notifications ['emits' ][0 ]['kwargs' ]['user' ] == moderator
210210 assert notifications ['emits' ][0 ]['type' ] == NotificationType .Type .PROVIDER_NEW_PENDING_SUBMISSIONS
211- assert notifications ['emits' ][1 ]['kwargs' ]['user' ] == moderator
212- assert notifications ['emits' ][1 ]['type' ] == NotificationType .Type .PROVIDER_NEW_PENDING_SUBMISSIONS
213- assert notifications ['emits' ][2 ]['kwargs' ]['user' ] == admin_user
214- assert notifications ['emits' ][2 ]['type' ] == NotificationType .Type .NODE_SCHEMA_RESPONSE_APPROVED
211+ assert notifications ['emits' ][1 ]['kwargs' ]['user' ] == admin_user
212+ assert notifications ['emits' ][1 ]['type' ] == NotificationType .Type .NODE_SCHEMA_RESPONSE_APPROVED
215213 massages = get_mailhog_messages ()
216214 assert massages ['count' ] == len (notifications ['emails' ])
217215 assert_emails (massages , notifications )
@@ -226,13 +224,11 @@ def test_moderators_notified_on_admin_approval(self, revised_response, admin_use
226224 delete_mailhog_messages ()
227225 with capture_notifications (passthrough = True ) as notifications :
228226 revised_response .approve (user = admin_user )
229- assert len (notifications ['emits' ]) == 3
227+ assert len (notifications ['emits' ]) == 2
230228 assert notifications ['emits' ][0 ]['kwargs' ]['user' ] == moderator
231229 assert notifications ['emits' ][0 ]['type' ] == NotificationType .Type .PROVIDER_NEW_PENDING_SUBMISSIONS
232- assert notifications ['emits' ][1 ]['kwargs' ]['user' ] == moderator
233- assert notifications ['emits' ][1 ]['type' ] == NotificationType .Type .PROVIDER_NEW_PENDING_SUBMISSIONS
234- assert notifications ['emits' ][2 ]['kwargs' ]['user' ] == admin_user
235- assert notifications ['emits' ][2 ]['type' ] == NotificationType .Type .NODE_SCHEMA_RESPONSE_APPROVED
230+ assert notifications ['emits' ][1 ]['kwargs' ]['user' ] == admin_user
231+ assert notifications ['emits' ][1 ]['type' ] == NotificationType .Type .NODE_SCHEMA_RESPONSE_APPROVED
236232 massages = get_mailhog_messages ()
237233 assert massages ['count' ] == len (notifications ['emails' ])
238234 assert_emails (massages , notifications )
0 commit comments