3.7.0
New features
- Add a
safir.testing.uvicorn.spawn_uvicorn
helper function to spawn an ASGI app under an external Uvicorn process. Normally, ASGI apps should be tested by passing the app directly to anhttpx.AsyncClient
, but in some cases (such as Selenium testing) the app needs to listen to regular HTTP requests. safir.database.initialize_database
now creates a non-default schema if the underlying SQLAlchemy model declares one.
Bug fixes
- After
safir.logging.configure_uvicorn_logging
was called, exception tracebacks were no longer expanded. Add the missing processor to the logging stack. - In
safir.logging.configure_uvicorn_logging
, send the access log to standard output instead of combining it with all other messages on standard error.
What's Changed
- [neophile] Update dependencies by @sqrbot in #139
- Add support for initialization of non-default schema by @fritzm in #140
- DM-38170: Fix Uvicorn logging, add Uvicorn testing function by @rra in #141
- DM-38170: Finalize changes for 3.7.0 by @rra in #142
New Contributors
Full Changelog: 3.6.0...3.7.0