@@ -95,7 +95,7 @@ def test_create_subsection_with_invalid_children(self):
9595 title = "Subsection" ,
9696 created = self .now ,
9797 created_by = None ,
98- container_type = content_api .Subsection ,
98+ container_type = content_api .SubsectionType ,
9999 )
100100 assert subsection .versioning .draft == subsection_version
101101 subsection2 , _s2v1 = content_api .create_container_and_version (
@@ -104,7 +104,7 @@ def test_create_subsection_with_invalid_children(self):
104104 title = "Subsection 2" ,
105105 created = self .now ,
106106 created_by = None ,
107- container_type = content_api .Subsection ,
107+ container_type = content_api .SubsectionType ,
108108 )
109109 # Try adding a Subsection to a Subsection
110110 with pytest .raises (
@@ -135,7 +135,7 @@ def test_adding_external_units(self):
135135 title = "Subsection" ,
136136 created = self .now ,
137137 created_by = None ,
138- container_type = content_api .Subsection ,
138+ container_type = content_api .SubsectionType ,
139139 )
140140 assert self .unit_1 .publishable_entity .learning_package != learning_package2
141141 # Try adding a a unit from LP 1 (self.learning_package) to a subsection from LP 2
@@ -187,7 +187,7 @@ def test_create_empty_subsection_and_version(self):
187187 title = "Subsection" ,
188188 created = self .now ,
189189 created_by = None ,
190- container_type = content_api .Subsection ,
190+ container_type = content_api .SubsectionType ,
191191 )
192192 assert subsection , subsection_version
193193 assert subsection_version .version_num == 1
@@ -212,7 +212,7 @@ def test_create_next_subsection_version_with_two_unpinned_units(self):
212212 title = "Subsection" ,
213213 created = self .now ,
214214 created_by = None ,
215- container_type = content_api .Subsection ,
215+ container_type = content_api .SubsectionType ,
216216 )
217217 subsection_version_v2 = content_api .create_next_container_version (
218218 subsection .pk ,
@@ -241,7 +241,7 @@ def test_create_next_subsection_version_forcing_version_num(self):
241241 title = "Subsection" ,
242242 created = self .now ,
243243 created_by = None ,
244- container_type = content_api .Subsection ,
244+ container_type = content_api .SubsectionType ,
245245 )
246246 subsection_version_v2 = content_api .create_next_container_version (
247247 subsection .pk ,
@@ -263,7 +263,7 @@ def test_create_next_subsection_version_with_unpinned_and_pinned_units(self):
263263 title = "Subsection" ,
264264 created = self .now ,
265265 created_by = None ,
266- container_type = content_api .Subsection ,
266+ container_type = content_api .SubsectionType ,
267267 )
268268 subsection_version_v2 = content_api .create_next_container_version (
269269 subsection .pk ,
@@ -346,7 +346,7 @@ def test_add_unit_after_publish(self):
346346 title = "Subsection" ,
347347 created = self .now ,
348348 created_by = None ,
349- container_type = content_api .Subsection ,
349+ container_type = content_api .SubsectionType ,
350350 )
351351 assert subsection .versioning .draft == subsection_version
352352 assert subsection .versioning .published is None
@@ -972,7 +972,7 @@ def test_add_remove_container_children(self):
972972 entities = [self .unit_1 ],
973973 created = self .now ,
974974 created_by = None ,
975- container_type = content_api .Subsection ,
975+ container_type = content_api .SubsectionType ,
976976 )
977977 assert content_api .get_entities_in_container (subsection , published = False ) == [
978978 Entry (self .unit_1 .versioning .draft ),
0 commit comments