Also name which setting has the dysfunctional override

So that it's easier to remove it.

Done during Turbo Testing & Tooling.
This commit is contained in:
Ghostkeeper 2019-10-18 17:00:47 +02:00
parent 76b5f9d37b
commit 1d7ad38db2
No known key found for this signature in database
GPG key ID: 59A4C0959592C05C

View file

@ -70,7 +70,7 @@ def test_validateOverridingDefaultValue(file_name):
parent_settings = getInheritedSettings(doc["inherits"])
for key, val in doc["overrides"].items():
if "value" in parent_settings[key]:
assert "default_value" not in val, "Unnecessary default_value in {file_name}".format(file_name = file_name) # If there is a value in the parent settings, then the default_value is not effective.
assert "default_value" not in val, "Unnecessary default_value for {key} in {file_name}".format(key = key, file_name = file_name) # If there is a value in the parent settings, then the default_value is not effective.
def getInheritedSettings(definition_id: str) -> Dict[str, Any]:
definition_path = os.path.join(os.path.dirname(__file__), "..", "..", "resources", "definitions", definition_id + ".def.json")