Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fantasy-database

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fantasy-database

A database with a few fantasy books in it for testing query builders, orms, rest frameworks, etc.

  • 2.0.3.post2
  • PyPI
  • Socket score

Maintainers
1

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:


# Testing
TESTING = len(sys.argv) > 1 and sys.argv[1] in ('test', 'testserver')

if TESTING:
    INSTALLED_APPS += (
        'django_fantasy',
    )

...

In a test module:


from django.test import TestCase

class FantasyTests(TestCase):
    fixtures = ['fantasy-database.json']
    ...

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc