mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-04-16 23:02:29 +02:00
27 lines
631 B
Markdown
27 lines
631 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
|