Skip to content

Commit 8376e33

Browse files
marcelsafinCopilot
andcommitted
test: allow duplicate IDs across component kinds
Assisted-by: GitHub Copilot (model: gpt-5.6-sol, autonomous) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 6577859 commit 8376e33

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎tests/contract/test_manifest_schema.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ def test_duplicate_component_in_same_kind_is_rejected():
141141
)
142142

143143

144+
def test_same_component_id_in_different_kinds_is_allowed():
145+
data = valid_manifest_dict()
146+
data["provides"]["steps"].append({"id": "ext-a"})
147+
148+
errors = BundleManifest.from_dict(data).structural_errors()
149+
150+
assert not any("duplicate" in error.lower() for error in errors)
151+
152+
144153
def test_string_tags_rejected_not_split_per_character():
145154
# A bare string would otherwise be iterated character-by-character; the
146155
# schema requires a list of strings.

0 commit comments

Comments
 (0)