dotimplement / HealthChain

Simplify testing and validating AI and NLP applications in a healthcare context 💫 🏥
https://dotimplement.github.io/HealthChain/
Apache License 2.0
25 stars 16 forks source link

Api decorator test #94

Closed Vortex-21 closed 4 weeks ago

Vortex-21 commented 1 month ago

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

Vortex-21 commented 1 month ago

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 !