Commits

Simon Meers committed 6e6da18

don't blow up if selenium isn't installed.

Comments (0)

Files changed (1)

generic/utils/testing.py

 
 from django.core import mail
 from django.test import LiveServerTestCase
-from selenium.webdriver.firefox.webdriver import WebDriver
 
 class SeleniumTests(LiveServerTestCase):
     save_post_test_screenshots = True
 
     @classmethod
     def setUpClass(cls):
+        from selenium.webdriver.firefox.webdriver import WebDriver
         cls.driver = WebDriver()
         super(SeleniumTests, cls).setUpClass()