32
32
delete_photo ,
33
33
resize_photo ,
34
34
send_suppressed_email_confirmation ,
35
- sync_blocked_emails ,
35
+ sync_suppressed_emails_task ,
36
36
)
37
37
38
38
@@ -219,7 +219,7 @@ def test_fails_missing_settings(self):
219
219
):
220
220
with pytest .raises (Exception ) as exc :
221
221
setattr (settings , setting , None )
222
- sync_blocked_emails .s ().apply (throw = True )
222
+ sync_suppressed_emails_task .s ().apply (throw = True )
223
223
assert exc .match ('SOCKET_LABS_TOKEN is not defined' )
224
224
225
225
def test_retry_if_api_returns_bad_response (self ):
@@ -229,7 +229,7 @@ def test_retry_if_api_returns_bad_response(self):
229
229
status = 500 ,
230
230
)
231
231
232
- task = sync_blocked_emails .s ()
232
+ task = sync_suppressed_emails_task .s ()
233
233
234
234
with pytest .raises (Retry ):
235
235
task .apply (throw = True )
@@ -244,7 +244,7 @@ def timeout_callback(request):
244
244
callback = timeout_callback ,
245
245
)
246
246
247
- task = sync_blocked_emails .s ()
247
+ task = sync_suppressed_emails_task .s ()
248
248
249
249
with pytest .raises (Retry ):
250
250
task .apply (throw = True )
@@ -259,7 +259,7 @@ def test_empty_csv(self):
259
259
status = 200 ,
260
260
)
261
261
262
- sync_blocked_emails ()
262
+ sync_suppressed_emails_task ()
263
263
264
264
assert SuppressedEmail .objects .count () == 0
265
265
@@ -277,7 +277,7 @@ def test_existing_email(self):
277
277
278
278
SuppressedEmail .objects .create (email = user .email )
279
279
280
- sync_blocked_emails ()
280
+ sync_suppressed_emails_task ()
281
281
282
282
email_block = SuppressedEmail .objects .get (email = user .email )
283
283
@@ -296,7 +296,7 @@ def test_unique_email(self):
296
296
status = 200 ,
297
297
)
298
298
299
- sync_blocked_emails ()
299
+ sync_suppressed_emails_task ()
300
300
301
301
email_block = SuppressedEmail .objects .get (email = user .email )
302
302
0 commit comments