Reusable database fixtures for any and all databases.
Project description
pytest-databases
Reusable test fixtures for any and all databases.
[!WARNING] > Pre-Release Alpha Stage
Please note that pytest-databases is currently in a pre-release alpha stage of development. This means the library is still under active development, and its API is subject to change. We encourage developers to experiment with pytest-databases and provide feedback, but we recommend against using it in production environments until a stable release is available.`
About
The pytest-databases
library aims to make testing with a database as simple as possible.
It is designed to offer pre-configured testing setups for many different types and versions of databases.
Features
pytest-databases
currently utilizes docker compose
(or the legacy docker-compose
) commands to manage the startup and shutdown of each database service. The following databases are currently available:
- Postgres: Version 12, 13, 14, 15, and 16 are available
- MySQL: Version 5.6, 5.7 and 8 are available
- Oracle: Version 18c XE and 23C Free are available
- SQL Server: Version 2022 is available
- Google AlloyDB Omni: Simplified Omni installation for easy testing.
- Google Spanner: The latest cloud-emulator from Google is available
- Cockroach: Version 23.1-latest is available
- Redis: Latest server
- Dragonfly: Latest server
- KeyDB: Latest server
- Elasticsearch: Version 7 and 8 are available
Contributing
All Litestar projects will always be a community-centered, available for contributions of any size.
Before contributing, please review the contribution guide.
If you have any questions, reach out to us on Discord, our org-wide GitHub discussions page, or the project-specific GitHub discussions page.
A Litestar Organization Project
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_databases-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b3c2c00c62e874604c5c85d63eb44e9d37bfb746aaf121ecbbf14e6c1d7eca8 |
|
MD5 | e7082d9c896b60f0716e6b9e5b68910a |
|
BLAKE2b-256 | 0b71c1ceacee2e268b78b37b590523cc4fbf41eb23db99c6ae90fc8f261c0460 |