Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b5c5cc

Browse files
committed
Minor possible bug fix
1 parent f950986 commit 3b5c5cc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,14 @@ def paramToDict(place, parameters=None):
151151

152152
for child in iterator:
153153
parameter = child.tag
154+
155+
if "}" in parameter:
156+
testParam = parameter.split("}")[1]
157+
else:
158+
testParam = parameter
159+
154160
condition = not conf.testParameter
155-
condition |= parameter.split("}")[1] in conf.testParameter
161+
condition |= testParam in conf.testParameter
156162

157163
if condition:
158164
testableParameters[parameter] = child.text

0 commit comments

Comments
 (0)