-Added test to check if the target function is wrapped in the APIMethod instance properly
-Added test to check if the "is_service_route" is added as an attribute to the function
-Added test to check if the "is_service_route" attribute is set to true or not.
I have added the necessary tests for the api decorator . Hope it covers the required range . Please review and ping me up if any changes are required !
Description
Added the basic necessary tests for the api decorator.
Related Issue
https://github.com/dotimplement/HealthChain/issues/74
Changes Made
-Added test to check if the target function is wrapped in the APIMethod instance properly -Added test to check if the "is_service_route" is added as an attribute to the function -Added test to check if the "is_service_route" attribute is set to true or not.
Testing
Checklist
Additional Notes