If you have Django installed, but don't have a Django settings module to import, importing selenose.cases raises ImproperlyConfigured when django.test is imported. Credit to @dannymc129 for noticing this.
This change makes sure you have both Django installed and valid settings before trying to subclass django.test.LiveServerTestCase.
It may be that the problem is actually with Django, and import django.test should work without valid settings. What do you think?
If you have Django installed, but don't have a Django settings module to import, importing
selenose.cases
raisesImproperlyConfigured
whendjango.test
is imported. Credit to @dannymc129 for noticing this.This change makes sure you have both Django installed and valid settings before trying to subclass
django.test.LiveServerTestCase
.It may be that the problem is actually with Django, and
import django.test
should work without valid settings. What do you think?