Installation¶
First, install the base package using pip:
pip install pytest-databases
Optional Database Support¶
To use pytest-databases
with specific databases, you need to install optional dependencies using “extras”. You can install support for one or multiple databases at once.
Database |
Installation Extra |
---|---|
PostgreSQL |
|
MySQL |
|
MariaDB |
|
Oracle |
|
SQL Server |
|
Google AlloyDB Omni |
|
Google Spanner |
|
Google BigQuery |
|
CockroachDB |
|
Redis |
|
Valkey |
|
Dragonfly |
|
KeyDB |
|
Elasticsearch |
|
Azure Blob Storage |
|
MinIO |
|
Example installing multiple extras:
pip install pytest-databases[postgres,mysql,redis]