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
fantasy-database-2.0.3.tar.gz
(12.1 kB
view details)
Built Distribution
File details
Details for the file fantasy-database-2.0.3.tar.gz
.
File metadata
- Download URL: fantasy-database-2.0.3.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b3f0570dedfa8c17cf5616ded582ecffe9cd65ec3aaf2885da6a4d902b78bea |
|
MD5 | 01118788ecb97d9bc59f786d7ae7dfa3 |
|
BLAKE2b-256 | 95c2081d29a88f4140b1f78bed935f17dd156d8463d891f5a38a4ba86d4ca52f |
File details
Details for the file fantasy_database-2.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: fantasy_database-2.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f0c47e8cc4d3d5d368c8d2b455c7474ee797c7dec0338ac5f42fd0fb2d4376d |
|
MD5 | 033fce1012c2cca31ffefbddc9f7c5db |
|
BLAKE2b-256 | 3ece1948c63a38e9c35611e3d20dc01dc852b735c56085c604d809c5e2fc908c |