Skip to content

Commit 42199b5

Browse files
committed
test: Should be [entity.container] and [entity.component]
1 parent 91c06b9 commit 42199b5

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

tests/openedx_content/applets/backup_restore/fixtures/library_backup/entities/subsection1-48afa3.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ version_num = 2
99
[entity.published]
1010
# unpublished: no published_version_num
1111

12+
# Starting with https://github.com/openedx/openedx-core/pull/545,
13+
# containers will derive their identity from `container_code` instead of
14+
# from `key` (although archives without a `container_code` will fall back
15+
# to `key`). We're adding this bit to the test fixture ahead of time to
16+
# ensure that older (Ulmo) code is forward-compatible with archives
17+
# containing `container_code`.
18+
[entity.container]
19+
container_type = "subsection"
20+
container_code = "subsection1-48afa3"
21+
1222
[entity.container.subsection]
1323

1424
# ### Versions
@@ -19,13 +29,3 @@ version_num = 2
1929

2030
[version.container]
2131
children = ["unit1-b7eafb"]
22-
23-
# Starting with https://github.com/openedx/openedx-core/pull/545,
24-
# containers will derive their identity from `container_code` instead of
25-
# from `key` (although archives without a `container_code` will fall back
26-
# to `key`). We're adding this bit to the test fixture ahead of time to
27-
# ensure that older (Ulmo) code is forward-compatible with archives
28-
# containing `container_code`.
29-
[container]
30-
container_type = "subsection"
31-
container_code = "subsection1-48afa3"

tests/openedx_content/applets/backup_restore/fixtures/library_backup/entities/xblock.v1/html/c22b9f97-f1e9-4e8f-87f0-d5a3c26083e2.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ version_num = 2
99
[entity.published]
1010
version_num = 2
1111

12-
# ### Versions
13-
14-
[[version]]
15-
title = "Text"
16-
version_num = 2
17-
1812
# Starting with https://github.com/openedx/openedx-core/pull/544,
1913
# components will derive their type and code from these attributes rather
20-
# than by parsing `key` (although archives without a [component] section will
21-
# fall back to parsing `key`). We're adding this bit to the test fixture
14+
# than by parsing `key` (although archives without an [entity.component] section
15+
# will fall back to parsing `key`). We're adding this bit to the test fixture
2216
# early, ensuring that older (Ulmo) code is forward-compatible with archives
23-
# containing the [component] section.
24-
[component]
17+
# containing the [entity.component] section.
18+
[entity.component]
2519
component_type = "xblock.v1:html"
2620
component_code = "c22b9f97-f1e9-4e8f-87f0-d5a3c26083e2"
21+
22+
# ### Versions
23+
24+
[[version]]
25+
title = "Text"
26+
version_num = 2

0 commit comments

Comments
 (0)