Skip to main content

Reusable database fixtures for any and all databases.

Project description

pytest-databases

Reusable test fixtures for any and all databases.

Litestar Logo - Light Litestar Logo - Dark

Project Status
CI/CD Latest Release ci Documentation Building
Quality Coverage Quality Gate Status Maintainability Rating Reliability Rating Security Rating
Package PyPI - Version PyPI - Support Python Versions Starlite PyPI - Downloads Litestar PyPI - Downloads
Community Reddit Discord Matrix Medium Twitter Blog
Meta Litestar Project types - Mypy License - MIT Litestar Sponsors linting - Ruff code style - Ruff

[!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
  • 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

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.


Litestar Logo - Light
A Litestar Organization Project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_databases-0.2.3.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_databases-0.2.3-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file pytest_databases-0.2.3.tar.gz.

File metadata

  • Download URL: pytest_databases-0.2.3.tar.gz
  • Upload date:
  • Size: 30.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for pytest_databases-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8db122cbda134c1f1b426e1e2deed0b43d1cf876e2a96708516ded60a8e0c6a7
MD5 dc68ec54557e6c0c8547a8b46644a2de
BLAKE2b-256 d6411296b6bb61a85133644acdc82043ceb10b51ee6c358b54c11a531ee4d2c2

See more details on using hashes here.

File details

Details for the file pytest_databases-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_databases-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e271a4a3fb92ac5237edb52a3f42e65f35fea9176ae55482615313153217ed20
MD5 b56a82ebd6c5d5a0694c391134093456
BLAKE2b-256 469a7ba84bb07f80f4fad8974885f998c106b5ce9029b0784301bc62b3507615

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page