beremiz
Clone
Summary
Browse
Changes
Graph
clean sys.argv, because if test is running from pytest
2017-09-16, Andrey Skvortsov
ff0c18be4a8b
clean sys.argv, because if test is running from pytest
sys.argv contains string "pytest --timeout 0 ./tests/tools"
Beremiz application parses it and throws exception.
from pyjs.jsonrpc import JSONRPCServiceBase
class JSONRPCService(JSONRPCServiceBase):
def serve(self):
return self.process(request.body.read())
def __call__(self, func):
self.methods[func.__name__] = func
return func