Skip to main content

Simple tests tools to make testing faster and easier.

Project description

https://badge.fury.io/py/django-test-tools.svg https://travis-ci.org/luiscberrocal/django-test-tools.svg?branch=master https://codecov.io/gh/luiscberrocal/django-test-tools/branch/master/graph/badge.svg Code Health Updates

Simple tests tools to make testing faster and easier.

Supports Python 3.5, 3.6, 3.7 with Django 1.10.8, 1.11.x, 2.0,x, 2.1.x adn 2.2.x

Documentation

The full documentation is at https://django-test-tools.readthedocs.io.

Quickstart

Install Django Test Tools:

pip install django-test-tools

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django_test_tools',
    ...
)

Features

Factory Generator

$  python manage.py generate_factories project.app

Model Test Case Generator

$  python manage.py generate_model_test_cases project.app

Serializer Generator

$ python manage.py generate_serializers project.app -s ModelSerializer

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Builds

$ make patch

Check the .travis.yml to make sure the versions of Djago are the latests. Check in https://www.djangoproject.com/download/ for the latest versions.

Close the git-flow release.

Instead of patch you could also use major o minor depending on the level of the release.

make upload

Credits

Tools used in rendering this package:

History

0.1.0 (2017-04-26)

  • First release on PyPI.

Project details


Download files

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

Files for django-test-tools, version 1.6.2
Filename, size File type Python version Upload date Hashes
Filename, size django_test_tools-1.6.2-py2.py3-none-any.whl (42.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size django-test-tools-1.6.2.tar.gz (30.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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