testing otw race register, submit
This commit is contained in:
@@ -74,7 +74,7 @@ def mocked_grpc(*args, **kwargs):
|
||||
class Result:
|
||||
def __init__(*args,**kwargs):
|
||||
self.result = 1
|
||||
|
||||
|
||||
class calculator_pb2_grpc:
|
||||
def PowerStub(*args,**kwargs):
|
||||
def __init__(*args,**kwargs):
|
||||
@@ -114,11 +114,17 @@ def mocked_sqlalchemy(*args, **kwargs):
|
||||
def raw_connection(self):
|
||||
return True
|
||||
|
||||
class QueryResult:
|
||||
def fetchall(self):
|
||||
return []
|
||||
|
||||
class MockConnection:
|
||||
def begin(self):
|
||||
return True
|
||||
|
||||
def execute(self):
|
||||
def execute(self,query):
|
||||
if 'polygon' in query:
|
||||
return QueryResult()
|
||||
return True
|
||||
|
||||
def execute(self):
|
||||
|
||||
Reference in New Issue
Block a user