[Core] Fix prtester context issue (#2609)

This commit is contained in:
Bocki 2022-04-05 14:46:42 +02:00 committed by GitHub
parent 2c50bbae95
commit fb28107cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
.github/prtester.py vendored
View File

@ -31,6 +31,9 @@ def testBridges(bridges,status):
# if an example or default value is missing for a required attribute, it will throw an error
# any non-required fields are not tested!!!
for parameter in parameters:
if parameter.get('type') == 'hidden' and parameter.get('name') == 'context':
cleanvalue = parameter.get('value').replace(" ","+")
formstring = formstring + '&' + parameter.get('name') + '=' + cleanvalue
if parameter.get('type') == 'number' or parameter.get('type') == 'text':
if parameter.has_attr('required'):
if parameter.get('placeholder') == '':