=====================
This package provides a Django test runner that uses unittest2 test discovery,
and can test against a pre-existing database when configured to do so.
## Quickstart
```bash
pip install django-extant-test-db
```
In _settings.py_, set the following:
```python
TEST_RUNNER = 'extant_test_db.runner.DiscoverRunner'
```
For any databases you want to be unmanaged by the test runner, add the
following:
```python
DATABASES = {
...
'TEST': {
'MANAGED': False,
},
...
}
```
## Configuration
This package provides a Django test runner that uses unittest2 test discovery,
and can test against a pre-existing database when configured to do so. In order
to use an extant database for tests (e.g., if you have a large database full of
read-only data), in your database TEST settings, set a MANAGED flag:
```python
DATABASES = {
'default': {
...
},
'warehouse': {
...
'TEST': {
'MANAGED': False,
},
}
}
```
The database used will be the same as the one used for the webserver, though
you can also provide an alternative test database name:
```python
DATABASES = {
...
'TEST': {
'MANAGED': False,
'NAME': os.environ['TEST_DB_NAME'],
},
...
}
```
Metadata
Release files for django-extant-test-db 0.1.4
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 |
|---|---|---|---|---|
| django-extant-test-db-0.1.4.tar.gz | 3.1 kB | Without provenance | Details for django-extant-test-db-0.1.4.tar.gz |
Release files / django-extant-test-db-0.1.4.tar.gz
| Download URL | django-extant-test-db-0.1.4.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5113b06bf14856c7b739ce63cc3ac594cfb9a46c161bd85080ef2fc793c0a6b1
|
|
BLAKE2b-256 checksum How to use checksums |
49c08231e4d728802cd146053866e5fa2307965acb1e1a15c1e1acbdb80440e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for django-extant-test-db 0.1.4
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.