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


Release history Release notifications | RSS feed

This version

1.6.2

Download files

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

Source Distribution

django-test-tools-1.6.2.tar.gz (30.6 kB view hashes)

Uploaded Source

Built Distribution

django_test_tools-1.6.2-py2.py3-none-any.whl (42.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page