summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-03-05 08:21:29 -0500
committerTim Graham <timograham@gmail.com>2015-03-05 17:51:17 -0500
commit82f7bee1d56e1bf8ae041c6cdeb7374ea6b844de (patch)
treef6cc406b488f8ec8b64b8791dd42d7a674427f29 /tests/admin_inlines
parent668d53cd125175eb708cc0af143f47b42cd42153 (diff)
Fixed admin selenium tests broken by removal of fixtures.
Diffstat (limited to 'tests/admin_inlines')
-rw-r--r--tests/admin_inlines/tests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index bb9905f87f..c262de7d27 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -667,11 +667,20 @@ class TestInlinePermissions(TestCase):
@override_settings(PASSWORD_HASHERS=['django.contrib.auth.hashers.SHA1PasswordHasher'],
ROOT_URLCONF="admin_inlines.urls")
-class SeleniumFirefoxTests(TestDataMixin, AdminSeleniumWebDriverTestCase):
+class SeleniumFirefoxTests(AdminSeleniumWebDriverTestCase):
available_apps = ['admin_inlines'] + AdminSeleniumWebDriverTestCase.available_apps
webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
+ def setUp(self):
+ # password = "secret"
+ User.objects.create(
+ pk=100, username='super', first_name='Super', last_name='User', email='super@example.com',
+ password='sha1$995a3$6011485ea3834267d719b4c801409b8b1ddd0158', is_active=True, is_superuser=True,
+ is_staff=True, last_login=datetime.datetime(2007, 5, 30, 13, 20, 10),
+ date_joined=datetime.datetime(2007, 5, 30, 13, 20, 10)
+ )
+
def test_add_stackeds(self):
"""
Ensure that the "Add another XXX" link correctly adds items to the