Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed available_apps for selenium tests.

Refs #20483.
  • Loading branch information...
commit dfcce4288ac6887e9995c48f2fde38f555cec03e 1 parent c6e6d4e
Aymeric Augustin authored June 10, 2013
4  tests/admin_inlines/tests.py
@@ -505,9 +505,11 @@ def test_inline_change_fk_all_perms(self):
505 505
 
506 506
 @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
507 507
 class SeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
508  
-    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
  508
+
  509
+    available_apps = ['admin_inlines'] + AdminSeleniumWebDriverTestCase.available_apps
509 510
     fixtures = ['admin-views-users.xml']
510 511
     urls = "admin_inlines.urls"
  512
+    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
511 513
 
512 514
     def test_add_stackeds(self):
513 515
         """
6  tests/admin_views/tests.py
@@ -3308,9 +3308,11 @@ def test_prepopulated_maxlength_localized(self):
3308 3308
 
3309 3309
 @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
3310 3310
 class SeleniumAdminViewsFirefoxTests(AdminSeleniumWebDriverTestCase):
3311  
-    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
3312  
-    urls = "admin_views.urls"
  3311
+
  3312
+    available_apps = ['admin_views'] + AdminSeleniumWebDriverTestCase.available_apps
3313 3313
     fixtures = ['admin-views-users.xml']
  3314
+    urls = "admin_views.urls"
  3315
+    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
3314 3316
 
3315 3317
     def test_prepopulated_fields(self):
3316 3318
         """
8  tests/admin_widgets/tests.py
@@ -470,9 +470,11 @@ def test_no_can_add_related(self):
470 470
 
471 471
 @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
472 472
 class DateTimePickerSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
473  
-    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
  473
+
  474
+    available_apps = ['admin_widgets'] + AdminSeleniumWebDriverTestCase.available_apps
474 475
     fixtures = ['admin-widgets-users.xml']
475 476
     urls = "admin_widgets.urls"
  477
+    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
476 478
 
477 479
     def test_show_hide_date_time_picker_widgets(self):
478 480
         """
@@ -526,9 +528,11 @@ class DateTimePickerSeleniumIETests(DateTimePickerSeleniumFirefoxTests):
526 528
 
527 529
 @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
528 530
 class HorizontalVerticalFilterSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
529  
-    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
  531
+
  532
+    available_apps = ['admin_widgets'] + AdminSeleniumWebDriverTestCase.available_apps
530 533
     fixtures = ['admin-widgets-users.xml']
531 534
     urls = "admin_widgets.urls"
  535
+    webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
532 536
 
533 537
     def setUp(self):
534 538
         self.lisa = models.Student.objects.create(name='Lisa')
2  tests/forms_tests/tests/test_widgets.py
@@ -1028,6 +1028,8 @@ class SplitDateRequiredForm(Form):
1028 1028
 
1029 1029
 
1030 1030
 class LiveWidgetTests(AdminSeleniumWebDriverTestCase):
  1031
+
  1032
+    available_apps = ['forms_tests'] + AdminSeleniumWebDriverTestCase.available_apps
1031 1033
     urls = 'forms_tests.urls'
1032 1034
 
1033 1035
     def test_textarea_trailing_newlines(self):

0 notes on commit dfcce42

Please sign in to comment.
Something went wrong with that request. Please try again.