Convert Course, Section and Sequence XModules to XBlocks. (#25965)

This commit is contained in:
Usman Khalid
2021-03-02 20:29:33 +05:00
committed by GitHub
parent 2dc4f35ce4
commit dd96a2aa72
68 changed files with 332 additions and 290 deletions

View File

@@ -55,7 +55,10 @@ class CourseDataTest(ModuleStoreTestCase):
if arg != kwarg and arg != "collected_block_structure": # lint-amnesty, pylint: disable=consider-using-in
expected = self.expected_results[arg]
actual = getattr(course_data, arg)
assert expected == actual
if arg == 'course':
assert expected.location == actual.location
else:
assert expected == actual
def test_properties(self):
expected_edited_on = getattr( # lint-amnesty, pylint: disable=literal-used-as-attribute