mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +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
|
@ -4298,15 +4298,14 @@ class SeleniumAdminViewsFirefoxTests(AdminSeleniumWebDriverTestCase):
|
|||
available_apps = ['admin_views'] + AdminSeleniumWebDriverTestCase.available_apps
|
||||
webdriver_class = 'selenium.webdriver.firefox.webdriver.WebDriver'
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
cls.u1 = User.objects.create(
|
||||
def setUp(self):
|
||||
self.u1 = User.objects.create(
|
||||
id=100, password='sha1$995a3$6011485ea3834267d719b4c801409b8b1ddd0158',
|
||||
last_login=datetime.datetime(2007, 5, 30, 13, 20, 10), is_superuser=True, username='super',
|
||||
first_name='Super', last_name='User', email='super@example.com',
|
||||
is_staff=True, is_active=True, date_joined=datetime.datetime(2007, 5, 30, 13, 20, 10)
|
||||
)
|
||||
cls.p1 = PrePopulatedPost.objects.create(title='A Long Title', published=True, slug='a-long-title')
|
||||
self.p1 = PrePopulatedPost.objects.create(title='A Long Title', published=True, slug='a-long-title')
|
||||
|
||||
def test_prepopulated_fields(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue