Test Application Root
This function tests the root endpoint of the application to ensure it returns the expected JSON response.
Source code in src/user_service/test_main.py
| def test_app():
"""
Test Application Root
This function tests the root endpoint of the application to ensure it returns the expected JSON response.
"""
assert tmp_client.get("/").json() == {"msg": "user_service"}
|