mocking myqueue in most tests
This commit is contained in:
@@ -49,6 +49,17 @@ redis_connection = StrictRedis()
|
||||
|
||||
from django_mailbox.models import Mailbox,MessageAttachment,Message
|
||||
|
||||
def mocked_myqueue(*args, **kwargs):
|
||||
class Job:
|
||||
def __init__(self,*args, **kwargs):
|
||||
self.result = 1
|
||||
self.id = 1
|
||||
|
||||
def revoke(self):
|
||||
return 1
|
||||
|
||||
return Job()
|
||||
|
||||
def mocked_sqlalchemy(*args, **kwargs):
|
||||
# return object with method
|
||||
|
||||
|
||||
Reference in New Issue
Block a user