shiningpanda / selenose

8 stars 7 forks source link

Allow selenose.cases to be imported with Django installed but no config #6

Closed grampajoe closed 6 years ago

grampajoe commented 10 years ago

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?

vamonte commented 10 years ago

:+1: We have same problem on our app.

grampajoe commented 6 years ago

Closing since this project isn't active. Feel free to @ me if that changes!