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
Close
Hashes for fantasy-database-2.0.3.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1582d5ff79784956f96c8af957449c4cedbb2ba57a0c59d0949f75e3bdce937d |
|
MD5 | ce94806e95a256724e6ee9b3e322bef7 |
|
BLAKE2b-256 | 49d69d3d664441995f5352ee1738c59f1fad91120d604916a6e41659bddbc78a |