Esempio n. 1
0
 async def callback(app, message):
     nonlocal callback_called
     callback_called = True
     raise exceptions.Abort('testing', message)
Esempio n. 2
0
 async def postprocess1(app, result):
     nonlocal postprocess1_called_count
     postprocess1_called_count += 1
     if result:
         raise exceptions.Abort('testing', result)
     return result
Esempio n. 3
0
 async def preprocess1(app, message):
     nonlocal preprocess1_called
     preprocess1_called = True
     raise exceptions.Abort('testing', message)
Esempio n. 4
0
 async def error1(app, message, exc):
     nonlocal error1_called
     error1_called = True
     raise exceptions.Abort('testing', message)