django-admin-smoke-tests travis-ci python

Runs some basic tests on your custom admin objects.

4 years after

======================== django-admin-smoke-tests

.. image:: https://travis-ci.org/greyside/django-admin-smoke-tests.svg?branch=master :target: https://travis-ci.org/greyside/django-admin-smoke-tests .. image:: https://coveralls.io/repos/greyside/django-admin-smoke-tests/badge.png?branch=master :target: https://coveralls.io/r/greyside/django-admin-smoke-tests?branch=master

Run with ./manage.py test django_admin_smoke_tests.tests.

You don't have to add anything INSTALLED_APPS

Usage in your tests

Import into your own code:

.. code:: python

from django.test import TestCase
from django_admin_smoke_tests.tests import AdminSiteSmokeTestMixin

class AdminSiteSmokeTest(AdminSiteSmokeTestMixin, TestCase):
    def setUp(self):
        super(AdminSiteSmokeTest, self).setUp()
        # custom setup goes here

If you want to use admin smoke tests as part of your tests with data from fixtures, you can do following:

.. code:: python

from django.test import TestCase
from django_admin_smoke_tests.tests import AdminSiteSmokeTestMixin

class AdminSiteSmokeTest(AdminSiteSmokeTestMixin, TestCase):
    fixtures = ['data']

And you can exclude certain (external) apps with::

exclude_apps = ['constance',]

Top Contributors

SeanHayes PetrDlouhy andybak jcushman

Releases

-   0.2.1 zip tar
-   0.2.0 zip tar
-   0.1.8 zip tar
-   0.1.7 zip tar
-   0.1.6 zip tar
-   0.1.5 zip tar
-   0.1.4 zip tar
-   0.1.3 zip tar
-   0.1.2 zip tar
-   0.1.1 zip tar