Fix explicit tuple parameters for Python 3
This commit is contained in:
@@ -691,7 +691,7 @@ class XBlockWrapper(PageObject):
|
||||
return self.q(css=self._bounded_selector('span.message-text a')).first.text[0]
|
||||
|
||||
|
||||
def _click_edit(page_object, button_css, view_css, bounded_selector=lambda(x): x):
|
||||
def _click_edit(page_object, button_css, view_css, bounded_selector=lambda x: x):
|
||||
"""
|
||||
Click on the first editing button found and wait for the Studio editor to be present.
|
||||
"""
|
||||
|
||||
@@ -80,7 +80,7 @@ class AddComponentTest(NestedVerticalTest):
|
||||
|
||||
def add_and_verify(self, menu_index, expected_ordering):
|
||||
self.do_action_and_verify(
|
||||
lambda (container): add_discussion(container, menu_index),
|
||||
lambda container: add_discussion(container, menu_index),
|
||||
expected_ordering
|
||||
)
|
||||
|
||||
@@ -120,7 +120,7 @@ class DuplicateComponentTest(NestedVerticalTest):
|
||||
|
||||
def duplicate_and_verify(self, source_index, expected_ordering):
|
||||
self.do_action_and_verify(
|
||||
lambda (container): container.duplicate(source_index),
|
||||
lambda container: container.duplicate(source_index),
|
||||
expected_ordering
|
||||
)
|
||||
|
||||
@@ -166,7 +166,7 @@ class DeleteComponentTest(NestedVerticalTest):
|
||||
|
||||
def delete_and_verify(self, source_index, expected_ordering):
|
||||
self.do_action_and_verify(
|
||||
lambda (container): container.delete(source_index),
|
||||
lambda container: container.delete(source_index),
|
||||
expected_ordering
|
||||
)
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ class CourseOutlineDragAndDropTest(CourseOutlineTest):
|
||||
def drag_and_verify(self, source, target, expected_ordering, outline_page=None):
|
||||
self.do_action_and_verify(
|
||||
outline_page,
|
||||
lambda (outline): drag(outline, source, target),
|
||||
lambda outline: drag(outline, source, target),
|
||||
expected_ordering
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user