From 3311f023629d5a353d38c6e0fcd7a4aa4e52ffde Mon Sep 17 00:00:00 2001 From: fabamatic Date: Fri, 15 Nov 2019 00:43:41 -0300 Subject: [PATCH] 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. --- execution-frameworks/contrib/python/runner.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/execution-frameworks/contrib/python/runner.py b/execution-frameworks/contrib/python/runner.py index 080508cb..4e84bda6 100644 --- a/execution-frameworks/contrib/python/runner.py +++ b/execution-frameworks/contrib/python/runner.py @@ -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))