skip to navigation
skip to content

django-testcase 0.1

A TestCaseMixin utility.

===============
django-testcase
===============

.. image:: https://travis-ci.org/jpmelos/django-testcase.svg?branch=master
:target: https://travis-ci.org/jpmelos/django-testcase

django-testcase provides a TestCase mixin to provide new useful functions for Django tests.

Supports Django 1.10 and later, only with Python 3.4 and later.

------------
Installation
------------

::

$ pip install django-testcase

-----------
Basic usage
-----------

Simply subclass it in a ``TestCase``::

from django.test import TestCase
from django_testcase import TestCaseMixin

class LoginViewTestCase(TestCaseMixin, TestCase):
def test_login(self):
pass

-----------------
Available methods
-----------------

TODO

Asserting code quality
^^^^^^^^^^^^^^^^^^^^^^

::

$ python dev.py quality

Packaging for PyPI distribution
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

$ python dev.py package

The build will happen if the repository passes the quality tests and is clean: no untracked files are found. If not, you can see what's wrong with ``git clean -dfx --dry-run`` and remove or track and commit those files.

Builds will be available at ``dist``, in wheel and source.

----------
Contribute
----------

Pull requests are welcome.


 
File Type Py Version Uploaded on Size
django-testcase-0.1.tar.gz (md5) Source 2017-08-11 3KB
django_testcase-0.1-py3-none-any.whl (md5) Python Wheel py3 2017-08-11 4KB