akaihola / nose-django

This is a plugin for nosetests to run unit tests against Django. It's been tested against Django 1.0b1 and nose 0.10. This repository is a branch off of http://www.assembla.com/wiki/show/cvoCb8Dqqr3yW...

Clone this repository (size: 28.4 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/akaihola/nose-django/
commit 13: 84cce424c003
parent 12: a6e52c3b64a8
branch: no-admin-py
tags: tip
Ignore admin.py files to avoid admin class re-registration exceptions.
aka...@veli
13 months ago

Changed (Δ124 bytes):

raw changeset »

nosedjango/nosedjango.py (4 lines added, 0 lines removed)

Up to file-list nosedjango/nosedjango.py:

@@ -153,3 +153,7 @@ class NoseDjango(Plugin):
153
153
            settings.ROOT_URLCONF = self.old_urlconf
154
154
            clear_url_caches()
155
155
156
    def wantFile(self, file):
157
        if os.path.basename(file) == 'admin.py':
158
            return False
159
        return None