I am wondering if there is a way to step into the request and response cycle, scenarios like constructing some tests using Unittest, to step into the request method, and do some validation.
with app.test_request_context('/test'):
app.preprocess_request()
# Do some stuff with the request