diff --git a/src/rez/tests/test_config.py b/src/rez/tests/test_config.py index eab5cbacf..f7ab096f8 100644 --- a/src/rez/tests/test_config.py +++ b/src/rez/tests/test_config.py @@ -95,13 +95,6 @@ def test_conditional_overrides(self): c.validate_data() - # Schema validation still works? - c.override("debug_none", PlatformDependent({ - platform_name: "Wrong Type", - })) - with self.assertRaises(ConfigurationError): - c.validate_data() - # Missing valid key or fallback with self.assertRaises(ConfigurationError): c.override("debug_none", PlatformDependent({ @@ -147,6 +140,14 @@ def test_conditional_overrides(self): self.assertEqual(c.plugins.release_hook.emailer.sender, "joe.bloggs") self.assertListEqual(c.implicit_packages, ["a list", "of values"]) + with self.assertRaises(ConfigurationError): + # Schema validation still works? + c.override("debug_none", PlatformDependent({ + platform_name: "Wrong Type", + })) + c.validate_data() + + def test_conditional_in_file(self): """Test package config overrides.""" conf = os.path.join(self.config_path, "test_conditional.py")