-
Hobbs, Alexandra (Contractor) authored
Update pytest library and add pytest-asyncio and pytest-mock for better testing. Add pytest unitests for all routes in login.py. Fix a bug where an unauthorized request would error and return a 500 instead of a 401. Remove the depcrecated app.on_event functions in favor of lifespan events.
Hobbs, Alexandra (Contractor) authoredUpdate pytest library and add pytest-asyncio and pytest-mock for better testing. Add pytest unitests for all routes in login.py. Fix a bug where an unauthorized request would error and return a 500 instead of a 401. Remove the depcrecated app.on_event functions in favor of lifespan events.