Metadata-Version: 2.0
Name: fantasy-database
Version: 2.0.3
Summary: A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.
Home-page: https://github.com/tkellen/fantasy-database
Author: Tyler Kellen
Author-email: tyler@sleekcode.net
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules

# 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']
    ...

```


