mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-03-01 17:00:48 +01:00
* chore: update docstring example to use python code block * docs: add documentation * feat: add docs build + fix other workdlows * fix: add missing return type
29 lines
684 B
Markdown
29 lines
684 B
Markdown
# `pytest`
|
|
|
|
Here's the reference for all testing utilities and pytest fixtures.
|
|
|
|
You can import them directly from `fastapi_toolsets.pytest`:
|
|
|
|
```python
|
|
from fastapi_toolsets.pytest import (
|
|
register_fixtures,
|
|
create_async_client,
|
|
create_db_session,
|
|
worker_database_url,
|
|
create_worker_database,
|
|
cleanup_tables,
|
|
)
|
|
```
|
|
|
|
## ::: fastapi_toolsets.pytest.plugin.register_fixtures
|
|
|
|
## ::: fastapi_toolsets.pytest.utils.create_async_client
|
|
|
|
## ::: fastapi_toolsets.pytest.utils.create_db_session
|
|
|
|
## ::: fastapi_toolsets.pytest.utils.worker_database_url
|
|
|
|
## ::: fastapi_toolsets.pytest.utils.create_worker_database
|
|
|
|
## ::: fastapi_toolsets.pytest.utils.cleanup_tables
|