You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Implicitly converted {parameter.name} to a floating point number from a string value, please use 'value_json' to define this test input parameter value instead."
# ``value=""`` on a numeric param is the legacy "not set" convention; emit None
101
+
# rather than raising on int("")/float("").
102
+
ifvalue=="":
103
+
result_value=None
104
+
elifisinstance(parameter, IntegerParameterModel):
105
+
ifWARN_ON_UNTYPED_XML_STRINGS:
106
+
warnings.append(
107
+
f"Implicitly converted {parameter.name} to an integer from a string value, please use 'value_json' to define this test input parameter value instead."
108
+
)
109
+
result_value=int(value)
110
+
else:
111
+
ifWARN_ON_UNTYPED_XML_STRINGS:
112
+
warnings.append(
113
+
f"Implicitly converted {parameter.name} to a floating point number from a string value, please use 'value_json' to define this test input parameter value instead."
0 commit comments