@@ -1503,6 +1503,7 @@ def test_direct_field_publishing_container_marks_dependencies_indirect(self) ->
15031503 )
15041504 unit = containers_api .create_container (
15051505 self .learning_package .id , "direct_unit" ,
1506+ container_code = "direct_unit" ,
15061507 created = self .now , created_by = None , container_cls = TestContainer ,
15071508 )
15081509 containers_api .create_container_version (
@@ -1536,6 +1537,7 @@ def test_direct_field_unit_no_version_change_still_direct_true(self) -> None:
15361537 )
15371538 unit = containers_api .create_container (
15381539 self .learning_package .id , "no_change_unit" ,
1540+ container_code = "no_change_unit" ,
15391541 created = self .now , created_by = None , container_cls = TestContainer ,
15401542 )
15411543 unit_v1 = containers_api .create_container_version (
@@ -1591,6 +1593,7 @@ def test_direct_field_publishing_component_marks_parent_indirect(self) -> None:
15911593 )
15921594 unit = containers_api .create_container (
15931595 self .learning_package .id , "leaf_unit" ,
1596+ container_code = "leaf_unit" ,
15941597 created = self .now , created_by = None , container_cls = TestContainer ,
15951598 )
15961599 containers_api .create_container_version (
@@ -1627,6 +1630,7 @@ def test_direct_field_both_selected_both_direct(self) -> None:
16271630 )
16281631 unit = containers_api .create_container (
16291632 self .learning_package .id , "both_unit" ,
1633+ container_code = "both_unit" ,
16301634 created = self .now , created_by = None , container_cls = TestContainer ,
16311635 )
16321636 containers_api .create_container_version (
0 commit comments