A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.
Project description
# fantasy-database
> A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.
## Django
This test app for Django provides models, migrations, and fixtures that implement the fantasy-database. It's
recommended that app installation be limited to testing only.
Example usage:
In your `settings.py` module:
```python
# Testing
TESTING = len(sys.argv) > 1 and sys.argv[1] in ('test', 'testserver')
if TESTING:
INSTALLED_APPS += (
'django_fantasy',
)
...
```
In a test module:
```python
from django.test import TestCase
class FantasyTests(TestCase):
fixtures = ['fantasy-database.json']
...
```
> A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.
## Django
This test app for Django provides models, migrations, and fixtures that implement the fantasy-database. It's
recommended that app installation be limited to testing only.
Example usage:
In your `settings.py` module:
```python
# Testing
TESTING = len(sys.argv) > 1 and sys.argv[1] in ('test', 'testserver')
if TESTING:
INSTALLED_APPS += (
'django_fantasy',
)
...
```
In a test module:
```python
from django.test import TestCase
class FantasyTests(TestCase):
fixtures = ['fantasy-database.json']
...
```
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
File details
Details for the file fantasy-database-2.0.3.post2.tar.gz
.
File metadata
- Download URL: fantasy-database-2.0.3.post2.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cea011ddd961e40d88eff5ed47a53f9c5d1b32e6807d807a8b0a1a39f5399b1 |
|
MD5 | 6b634bbd6e08698e2beed2cde68ee2d5 |
|
BLAKE2b-256 | 77aca0d40abfdb7d50f7ad0cf4ad272e346ccaa7e3fa963e87f360a47ae03011 |
File details
Details for the file fantasy_database-2.0.3.post2-py2.py3-none-any.whl
.
File metadata
- Download URL: fantasy_database-2.0.3.post2-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7129e00c905a9306a624f32c3140ee7673ce3f1a1d78263db151f4f3f11facb3 |
|
MD5 | b8c7ac85e3770e3985268ab88b9fce69 |
|
BLAKE2b-256 | f6d3ca829f4315f5135f8fcba24e49129ff93a0217318383b219dc3c72b6918a |