Private
Public Access
1
0

mocking myqueue in most tests

This commit is contained in:
Sander Roosendaal
2019-02-10 15:54:09 +01:00
parent 9ec2b06338
commit 5becabb216
15 changed files with 75 additions and 11 deletions

View File

@@ -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