further tests in async tasks
This commit is contained in:
@@ -58,6 +58,9 @@ redis_connection = StrictRedis()
|
||||
|
||||
from django_mailbox.models import Mailbox,MessageAttachment,Message
|
||||
|
||||
def mocked_send_template_email(*args,**kwargs):
|
||||
return 1
|
||||
|
||||
def mocked_myqueue(*args, **kwargs):
|
||||
class Job:
|
||||
def __init__(self,*args, **kwargs):
|
||||
@@ -915,3 +918,10 @@ def mocked_requests(*args, **kwargs):
|
||||
return MockResponse(c2workoutdata,200)
|
||||
|
||||
return MockResponse(None,404)
|
||||
|
||||
class MockEmailMessage:
|
||||
def __init__(*args,**kwargs):
|
||||
pass
|
||||
|
||||
def send(self):
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user