Simple tests tools to make testing faster and easier.
Project description
Simple tests tools to make testing faster and easier.
Supports Python 3.4, 3.5, 3.5 with Django 1.10.7 and 1.11.2.
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
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
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
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.6.2.tar.gz
(15.7 kB
view hashes)