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.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fast_test_database-1.0.11.tar.gz | 2.8 kB | Without provenance | Details for fast_test_database-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fast_test_database-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for fast_test_database-1.0.11-py3-none-any.whl |
Total release size: 6.0 kB
Release files / fast_test_database-1.0.11.tar.gz
| Download URL | fast_test_database-1.0.11.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a38f7d6e18153fdba0edbfbd1ffe25899ac62d53fc9e652434e726a854e2aee3
|
|
BLAKE2b-256 checksum How to use checksums |
3ef126e902e5d3d8104d8c90d59389a533e6a3da4fd7e1a4bd9a921f59ac1202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.18
|
Release files / fast_test_database-1.0.11-py3-none-any.whl
| Download URL | fast_test_database-1.0.11-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79b62cd64482c599206cf8dade0e8574e288c806158696d5881b952fecf2256f
|
|
BLAKE2b-256 checksum How to use checksums |
7b29938cbac1a7fea149b9492b931767ee6d988a80cfed49f25a9739584cf36f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.18
|
Security for fast-test-database 1.0.11
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.