This commit is contained in:
Adam Hopkins 2020-07-14 10:30:01 +03:00
parent 16d36fc17f
commit 3d1f100781

View File

@ -23,11 +23,11 @@ class SanicTestClient:
self.host = host
@app.listener("after_server_start")
def _start_test_mode(sanic, loop):
def _start_test_mode(sanic, *args, **kwargs):
sanic.test_mode = True
@app.listener("before_server_end")
def _end_test_mode(sanic, loop):
def _end_test_mode(sanic, *args, **kwargs):
sanic.test_mode = False
def get_new_session(self):