Updating icons on problem type editor
This commit is contained in:
@@ -265,7 +265,7 @@ class StudioLibraryContainerCapaFilterTest(LibraryContentTestBase, TestWithSearc
|
||||
@property
|
||||
def _problem_headers(self):
|
||||
""" Expected XBLock headers according to populate_library_fixture """
|
||||
return frozenset(child.display_name.upper() for child in self.library_fixture.children)
|
||||
return frozenset(child.display_name for child in self.library_fixture.children)
|
||||
|
||||
def _set_library_content_settings(self, count=1, capa_type="Any Type"):
|
||||
"""
|
||||
@@ -304,7 +304,7 @@ class StudioLibraryContainerCapaFilterTest(LibraryContentTestBase, TestWithSearc
|
||||
self.assertEqual(len(children_headers), 1)
|
||||
self.assertLessEqual(
|
||||
children_headers,
|
||||
set([header.upper() for header in ["Problem Choice Group 1", "Problem Choice Group 2"]])
|
||||
set(["Problem Choice Group 1", "Problem Choice Group 2"])
|
||||
)
|
||||
|
||||
# Choice group test
|
||||
@@ -312,7 +312,7 @@ class StudioLibraryContainerCapaFilterTest(LibraryContentTestBase, TestWithSearc
|
||||
self.assertEqual(len(children_headers), 2)
|
||||
self.assertEqual(
|
||||
children_headers,
|
||||
set([header.upper() for header in ["Problem Select 1", "Problem Select 2"]])
|
||||
set(["Problem Select 1", "Problem Select 2"])
|
||||
)
|
||||
|
||||
# Missing problem type test
|
||||
|
||||
@@ -1013,7 +1013,7 @@ class ProblemExecutionTest(UniqueCourseTest):
|
||||
self.course_nav.go_to_section('Test Section', 'Test Subsection')
|
||||
|
||||
problem_page = ProblemPage(self.browser)
|
||||
self.assertEqual(problem_page.problem_name, 'PYTHON PROBLEM')
|
||||
self.assertEqual(problem_page.problem_name.upper(), 'PYTHON PROBLEM')
|
||||
|
||||
# Does the page have computation results?
|
||||
self.assertIn("What is the sum of 17 and 3?", problem_page.problem_text)
|
||||
|
||||
@@ -66,7 +66,7 @@ class CoursewareTest(UniqueCourseTest):
|
||||
"""
|
||||
self.courseware_page.visit()
|
||||
self.problem_page = ProblemPage(self.browser)
|
||||
self.assertEqual(self.problem_page.problem_name, 'TEST PROBLEM 1')
|
||||
self.assertEqual(self.problem_page.problem_name, 'Test Problem 1')
|
||||
|
||||
def _create_breadcrumb(self, index):
|
||||
""" Create breadcrumb """
|
||||
@@ -103,8 +103,8 @@ class CoursewareTest(UniqueCourseTest):
|
||||
|
||||
# Visit courseware as a student.
|
||||
self.courseware_page.visit()
|
||||
# Problem name should be "TEST PROBLEM 2".
|
||||
self.assertEqual(self.problem_page.problem_name, 'TEST PROBLEM 2')
|
||||
# Problem name should be "Test Problem 2".
|
||||
self.assertEqual(self.problem_page.problem_name, 'Test Problem 2')
|
||||
|
||||
def test_course_tree_breadcrumb(self):
|
||||
"""
|
||||
|
||||
@@ -56,7 +56,7 @@ class MatlabProblemTest(ProblemsTest):
|
||||
"""
|
||||
self.courseware_page.visit()
|
||||
matlab_problem_page = MatlabProblemPage(self.browser)
|
||||
self.assertEqual(matlab_problem_page.problem_name, 'TEST MATLAB PROBLEM')
|
||||
self.assertEqual(matlab_problem_page.problem_name, 'Test Matlab Problem')
|
||||
return matlab_problem_page
|
||||
|
||||
def test_run_code(self):
|
||||
|
||||
Reference in New Issue
Block a user