Update json_to_md.py
This commit is contained in:
+2
-11
@@ -40,17 +40,8 @@ def stringify(obj, indent=0):
|
||||
return str(obj)
|
||||
|
||||
def sanitize_param_value(v):
|
||||
s = repr(v)
|
||||
return (
|
||||
s.replace('&', '^')
|
||||
.replace('<', '(')
|
||||
.replace('>', ')')
|
||||
.replace('"', '')
|
||||
.replace("'", '')
|
||||
.replace('`', '')
|
||||
.replace('=', '≡')
|
||||
.replace('\\', '/')
|
||||
)
|
||||
s = json.dumps(v, ensure_ascii=False)
|
||||
return html.escape(s)
|
||||
|
||||
def normalize_nodeid(nodeid):
|
||||
"""Convert pytest nodeid to Allure fullName format"""
|
||||
|
||||
Reference in New Issue
Block a user