-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit test for API endpoints using TestClient library from fast-api #13
base: main
Are you sure you want to change the base?
Add unit test for API endpoints using TestClient library from fast-api #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add a unit-test for 1 func in src/services/kill.py
Please also sign your commit using |
Alright, I will do that @kamoltat |
…api/add-endpoint-unit-tests
…ng TestClient library from fast-api Signed-off-by: Dorcas Bamisile <[email protected]>
Hello @kamoltat, I wanted to let you know that I've added unit tests for src/services/kill.py and signed my commit. Can you please review it? |
Signed-off-by: Dorcas Bamisile <[email protected]>
Hello @kamoltat, I have pushed a commit for my Task 3. Please review it and provide me with your feedback or suggestions. Additionally, if you haven't had a chance to review my Task 2 yet, please also look at that. Thank you in advance for your help. cc: @amathuria @zmc |
Added unit tests for API endpoints using FastAPI's TestClient library to ensure correct responses and improve application quality. Used TestClient to make HTTP requests, wrote test functions for various use cases and checked for correct status codes, headers, and response bodies. Please review @amathuria @kamoltat @zmc