squash
This commit is contained in:
parent
16d36fc17f
commit
3d1f100781
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user