Skip to content

Commit

Permalink
Improved README.
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy authored and SeanHayes committed Jan 26, 2016
1 parent 8448841 commit 21a2f61
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ django-admin-smoke-tests

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

Or import into your own code:
You don't have to add anything ``INSTALLED_APPS``

Usage in your tests
-------------------

Import into your own code:

.. code:: python
Expand All @@ -20,3 +25,14 @@ Or import into your own code:
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']

0 comments on commit 21a2f61

Please sign in to comment.