how to avoid decorators while unit testing in python flask application
问题 I am new to python and flask. I wanted to create unit tests for an api written. We have used jwt for authentication. To unit test, I don't want the flow to enter @jwt_required decorator. In addition to that I have chained a few other decorators for that method. class A(): @jwt_required() @mandatory_fields_check @unlock_and_lock() def get(self, address, name): .. .. .. return jsonify( {"payload": data, "message": "data received successfully"}), 200 Unit test I am trying to write def test_get()