jbalogh/django-nose — Issue #49: Possible to make optional for the application?
Author: kprantis
Created: 2011-11-29 00:03:48+00:00
State: open

I have an application for which I would like to use django-nose for testing, but I would prefer not to require django-nose to be present for the app itself to run. (For example, I don't want production installations of our product to require django-nose - they won't be running unit tests and I'd like to minimize what they have to install). I can't just test if django-nose is importable in settings.py, because when it tries to import it there is an Import Error:

ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

Is this currently possible?