mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed admin selenium tests broken by removal of fixtures.
This commit is contained in:
parent
668d53cd12
commit
82f7bee1d5
4 changed files with 42 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue