Report is_public default value being a string

This commit is contained in:
Alexandre Aubin 2020-11-25 02:11:26 +01:00
parent b00ef3d23c
commit 6cc1b2f330

View file

@ -984,6 +984,10 @@ class Manifest(TestSuite):
"The type '%s' for argument '%s' is not recognized... " "The type '%s' for argument '%s' is not recognized... "
"it probably doesn't behave as you expect ? Choose among those instead : %s" % (argument["type"], argument["name"], ', '.join(recognized_types)) "it probably doesn't behave as you expect ? Choose among those instead : %s" % (argument["type"], argument["name"], ', '.join(recognized_types))
) )
elif argument["type"] == "boolean" and argument.get("default", True) not in [True, False]:
yield Warning(
"Default value for boolean-type arguments should be a boolean... (in particular, make sure it's not a string!)"
)
if "choices" in argument.keys(): if "choices" in argument.keys():
choices = [c.lower() for c in argument["choices"]] choices = [c.lower() for c in argument["choices"]]