mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-19 18:09:31 +08:00
move print_output function from runner.py to utils.py
This commit is contained in:
13
ate/utils.py
13
ate/utils.py
@@ -359,3 +359,16 @@ def override_variables_binds(variable_binds, new_mapping):
|
||||
convert_to_order_dict(variable_binds),
|
||||
new_mapping
|
||||
)
|
||||
|
||||
def print_output(output):
|
||||
if not output:
|
||||
return
|
||||
|
||||
print("\n================== Output ==================")
|
||||
print('{:<10}: {:<}'.format("Variable", "Value"))
|
||||
print('{:<10}: {:<}'.format("--------", "-----"))
|
||||
|
||||
for variable, value in output.items():
|
||||
print('{:<10}: {:<}'.format(variable, value))
|
||||
|
||||
print("============================================\n")
|
||||
|
||||
Reference in New Issue
Block a user