Skip to content

Commit 9b4ef40

Browse files
committed
Add test cases for a list of platform builders
1 parent 1b4c939 commit 9b4ef40

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/test_config_validation/test_global_config.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,33 @@ def fixture_override_master_config_file(tmp_path):
120120
"disable-multi-platform: Input should be a valid boolean, unable to interpret input (bool_parsing)"
121121
],
122122
),
123+
(
124+
"""
125+
platform-builders:
126+
linux/amd64:
127+
- builder1
128+
- builder2
129+
linux/arm64:
130+
- builder3
131+
""",
132+
[],
133+
),
134+
(
135+
"""
136+
platform-builders:
137+
linux/amd64: builder2
138+
linux/arm64: builder3
139+
""",
140+
[],
141+
),
142+
(
143+
"""
144+
platform-builders:
145+
- builder2
146+
- builder3
147+
""",
148+
["platform-builders: Input should be a valid dictionary (dict_type)"],
149+
),
123150
],
124151
)
125152
def test_config_data(

0 commit comments

Comments
 (0)