From dfcce4288ac6887e9995c48f2fde38f555cec03e Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 10 Jun 2013 12:11:46 +0200 Subject: [PATCH] Fixed available_apps for selenium tests. Refs #20483. --- tests/admin_inlines/tests.py | 4 +++- tests/admin_views/tests.py | 6 ++++-- tests/admin_widgets/tests.py | 8 ++++++-- tests/forms_tests/tests/test_widgets.py | 2 ++ 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py index 78ccf074d56..41dc0e32dea 100644 --- a/tests/admin_inlines/tests.py +++ b/tests/admin_inlines/tests.py @@ -505,9 +505,11 @@ class TestInlinePermissions(TestCase): @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',)) class SeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): - webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' + + available_apps = ['admin_inlines'] + AdminSeleniumWebDriverTestCase.available_apps fixtures = ['admin-views-users.xml'] urls = "admin_inlines.urls" + webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' def test_add_stackeds(self): """ diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 8c8a65318ce..c0925e0ad94 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -3308,9 +3308,11 @@ class PrePopulatedTest(TestCase): @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',)) class SeleniumAdminViewsFirefoxTests(AdminSeleniumWebDriverTestCase): - webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' - urls = "admin_views.urls" + + available_apps = ['admin_views'] + AdminSeleniumWebDriverTestCase.available_apps fixtures = ['admin-views-users.xml'] + urls = "admin_views.urls" + webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' def test_prepopulated_fields(self): """ diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py index 98f41c14903..4823883f42c 100644 --- a/tests/admin_widgets/tests.py +++ b/tests/admin_widgets/tests.py @@ -470,9 +470,11 @@ class RelatedFieldWidgetWrapperTests(DjangoTestCase): @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',)) class DateTimePickerSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): - webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' + + available_apps = ['admin_widgets'] + AdminSeleniumWebDriverTestCase.available_apps fixtures = ['admin-widgets-users.xml'] urls = "admin_widgets.urls" + webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' def test_show_hide_date_time_picker_widgets(self): """ @@ -526,9 +528,11 @@ class DateTimePickerSeleniumIETests(DateTimePickerSeleniumFirefoxTests): @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',)) class HorizontalVerticalFilterSeleniumFirefoxTests(AdminSeleniumWebDriverTestCase): - webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' + + available_apps = ['admin_widgets'] + AdminSeleniumWebDriverTestCase.available_apps fixtures = ['admin-widgets-users.xml'] urls = "admin_widgets.urls" + webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver' def setUp(self): self.lisa = models.Student.objects.create(name='Lisa') diff --git a/tests/forms_tests/tests/test_widgets.py b/tests/forms_tests/tests/test_widgets.py index 4664553aa70..4c566dc8e43 100644 --- a/tests/forms_tests/tests/test_widgets.py +++ b/tests/forms_tests/tests/test_widgets.py @@ -1028,6 +1028,8 @@ class WidgetTests(TestCase): class LiveWidgetTests(AdminSeleniumWebDriverTestCase): + + available_apps = ['forms_tests'] + AdminSeleniumWebDriverTestCase.available_apps urls = 'forms_tests.urls' def test_textarea_trailing_newlines(self):