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'
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
File details
Details for the file django-easytests-0.8.beta.5.tar.gz
.
File metadata
- Download URL: django-easytests-0.8.beta.5.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3534bedf5b2d29138452a73ccad63ed7f88635f45444396d217877398b00f8a |
|
MD5 | 761148c5ff078465447041fa1b83684c |
|
BLAKE2b-256 | c65e1f387d1ad616edb3ab64d102c681bb102148cf45073713c2d1fdb13370bd |