test otw testpower
This commit is contained in:
@@ -58,6 +58,30 @@ redis_connection = StrictRedis()
|
||||
|
||||
from django_mailbox.models import Mailbox,MessageAttachment,Message
|
||||
|
||||
def mocked_grpc(*args, **kwargs):
|
||||
class insecure_channel:
|
||||
def __init__(*args,**kwargs):
|
||||
pass
|
||||
|
||||
class channel_ready_future:
|
||||
def __init__(*args,**kwargs):
|
||||
pass
|
||||
|
||||
def result(self,*args,**kwargs):
|
||||
pass
|
||||
|
||||
class Result:
|
||||
def __init__(*args,**kwargs):
|
||||
self.result = 1
|
||||
|
||||
class calculator_pb2_grpc:
|
||||
def PowerStub(*args,**kwargs):
|
||||
def __init__(*args,**kwargs):
|
||||
pass
|
||||
|
||||
def CalcPower(*args,**kwargs):
|
||||
return Result()
|
||||
|
||||
def mocked_send_template_email(*args,**kwargs):
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user