We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1597f commit 9441467Copy full SHA for 9441467
1 file changed
unittests/test_schema.py
@@ -200,3 +200,15 @@ def test_recipe_environments_yaml(recipe_paths):
200
with open(p / "environments.yaml") as fid:
201
raw = yaml.load(fid, Loader=yaml.Loader)
202
schema.EnvironmentsValidator.validate(raw)
203
+
204
205
+def test_unique_properties():
206
+ invalid_config = dedent(
207
+ """
208
+ name: invalid-config
209
+ name: duplicate-name
210
211
+ )
212
213
+ with pytest.raises(Exception):
214
+ yaml.load(invalid_config, Loader=yaml.Loader)
0 commit comments