Method: flask.blueprints.Blueprint.teardown_app_request
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
test_app_request_processing.
test_app_request_processing.
1@setupmethod
2 def teardown_app_request(self, f: T_teardown) -> T_teardown:
3 """Like :meth:`teardown_request`, but after every request, not only those
4 handled by the blueprint. Equivalent to :meth:`.Flask.teardown_request`.
5 """
6 self.record_once(
7 lambda s: s.app.teardown_request_funcs.setdefault(None, []).append(f)
8 )
9 return f