Skip to main content
Help us improve Python packaging – donate today!

Slightly modified test utils from django-cms as a own module

Project Description

Utils for test setup based on test utils from django-cms

Installation

For the current stable version:

pip install django-easytests

For the development version:

pip install -e git+git://github.com/fivethreeo/django-easytests.git#egg=django-easytests

Example usage in runtests.py:

#!/usr/bin/env python
from djeasytests.testsetup import TestSetup, default_settings

default_settings.update(dict(
    ROOT_URLCONF='shop_categories.test_utils.project.urls',
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': 'shopexampledb.sqlite',
        }
    },
    INSTALLED_APPS = [
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.admin',
        'django.contrib.sites',
        'django.contrib.staticfiles',
        'treeadmin',
        'shop_categories',
        'shop_categories.test_utils.project'
    ],
    SHOP_PRODUCT_MODEL = 'shop_categories.test_utils.project.models.product.Product',
    SHOP_CATEGORIES_CATEGORY_MODEL = 'shop_categories.test_utils.project.models.category.Category'
))

testsetup = TestSetup(appname='shop_categories', default_settings=default_settings)

if __name__ == '__main__':
    testsetup.run('tests') # Can be 'tests', 'shell' or 'testserver'

Release history Release notifications

History Node

0.9.4

History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

History Node

0.9

History Node

0.8.4.beta.0

History Node

0.8.3.beta.0

History Node

0.8.2.beta.0

History Node

0.8.1.beta.0

History Node

0.8.beta.7

This version
History Node

0.8.beta.6

History Node

0.8.beta.5

History Node

0.8.beta.4

History Node

0.8.beta.3

History Node

0.8.beta.2

History Node

0.8.beta.1

History Node

0.8.beta.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-easytests-0.8.beta.6.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None Aug 21, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page