Kaydet (Commit) c7b8d5d1 authored tarafından Tim Graham's avatar Tim Graham

Refs #25550 -- Removed reverse related set assignment in selenium tests.

üst ad67fcdf
...@@ -1033,9 +1033,8 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(SeleniumDataMixin, AdminSelen ...@@ -1033,9 +1033,8 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(SeleniumDataMixin, AdminSelen
str(self.arthur.id), str(self.cliff.id)]) str(self.arthur.id), str(self.cliff.id)])
def test_basic(self): def test_basic(self):
self.school.students = [self.lisa, self.peter] self.school.students.set([self.lisa, self.peter])
self.school.alumni = [self.lisa, self.peter] self.school.alumni.set([self.lisa, self.peter])
self.school.save()
self.admin_login(username='super', password='secret', login_url='/') self.admin_login(username='super', password='secret', login_url='/')
self.selenium.get('%s%s' % ( self.selenium.get('%s%s' % (
...@@ -1061,9 +1060,8 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(SeleniumDataMixin, AdminSelen ...@@ -1061,9 +1060,8 @@ class HorizontalVerticalFilterSeleniumFirefoxTests(SeleniumDataMixin, AdminSelen
""" """
from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.keys import Keys
self.school.students = [self.lisa, self.peter] self.school.students.set([self.lisa, self.peter])
self.school.alumni = [self.lisa, self.peter] self.school.alumni.set([self.lisa, self.peter])
self.school.save()
self.admin_login(username='super', password='secret', login_url='/') self.admin_login(username='super', password='secret', login_url='/')
self.selenium.get( self.selenium.get(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment