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

Simple tests tools to make testing faster and easier.

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.apps.DjangoTestToolsConfig',
    ...
)

Add Django Test Tools’s URL patterns:

from django_test_tools import urls as django_test_tools_urls


urlpatterns = [
    ...
    url(r'^', include(django_test_tools_urls)),
    ...
]

Features

Factory Generator

$  $ python manage.py generate_factories project.app

Model Test Case Generator

$  $ python manage.py generate_model_test_cases project.app

Running Tests

Does the code actually work?

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

Builds

We are using Travis for continuos integration SOON For coverage we are using coveralls SOON

Run bumpversion

$ bumpversion minor

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

python setup.py sdist bdist_wheel

python setup.py register -r pypitest

python setup.py sdist upload -r pypitest

Check https://testpypi.python.org/pypi/acp-calendar/

python setup.py register -r pypi

python setup.py sdist upload -r pypi

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

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-0.3.0.tar.gz (12.9 kB view hashes)

Uploaded Source

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