Skip to main content

Fast test database

Use a pure in-memory database for running Django tests.

Usage

In settings.py:

from fast_test_database import fast_test_database

DATABASES = fast_test_database(DATABASES)

# Or:
DATABASES = fast_test_database(DATABASES,
                               test_commands=('test', 'harvest'))

# Or:
DATABASES = fast_test_database(DATABASES,
                               version='5.7')

This will be a no-op except for ./manage.py test, when an in-memory database will be automatically started and supplied to the application.

Details

The in-memory database is a full PostgreSQL or MySQL instance started using Docker, using tmpfs for storing the data. A single container will be started if not yet running. It will not be shut down automatically, and instead reused for subsequent tests.

The type of the database (PostgreSQL or MySQL) is chosen based on the existing default database engine.

The default version of the database (PostgreSQL or MySQL) is latest. But it can be specified by version parameter.

Metadata

Release files for fast-test-database 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fast-test-database 1.0.10
File Size Uploaded Provenance Actions
fast_test_database-1.0.10.tar.gz 2.8 kB Without provenance Details for fast_test_database-1.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fast-test-database 1.0.10
File Interpreter ABI Platform Actions
fast_test_database-1.0.10-py3-none-any.whl Python 3 none any Details for fast_test_database-1.0.10-py3-none-any.whl

Total release size: 6.0 kB

Release files / fast_test_database-1.0.10.tar.gz

Download URL fast_test_database-1.0.10.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e540157b83e61c845ed1c200d9eb8377dcf0ee037efe448f0a4f349dd7dec53d
BLAKE2b-256 checksum
How to use checksums
920126562c9b62d15966284a44ccd14ca818ec7c36b545189911f4d96447aa0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.16

Release files / fast_test_database-1.0.10-py3-none-any.whl

Download URL fast_test_database-1.0.10-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed0adbc19af2dd01f0a1042f5579c5c1a522e2f55b0891642f59301b344e4612
BLAKE2b-256 checksum
How to use checksums
433cd0e0cc9fc5ca360d4af4a38c69a23147174db3730bb5322f025cc4a7a11e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.16

Security for fast-test-database 1.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page