Adding .yaml integer parser to python runner (#639)

This change is to be able to execute tests contained in T1055.yaml and T1071.yaml. Will also cover any future tests that may use that data type as argument.
This commit is contained in:
fabamatic
2019-11-15 00:43:41 -03:00
committed by Carrie Roberts
parent 70d795ffa2
commit 3311f02362
@@ -372,7 +372,11 @@ def convert_to_right_type(value, t):
elif t == "url":
# We'll assume the URL is well-formatted. That's the user's problem. :)
pass
elif t == "integer" or t == "int":
# We'll assume that the int it's actually an int
value = str(value)
else:
raise Exception("Value type {} does not exist!".format(t))