Commit d24447cb by Gabriel Falcão

Merge pull request #460 from dnozay/deterministic_step_status

cannot assume that dict items are ordered
parents 6f24006e 499abdd2
...@@ -237,13 +237,13 @@ def print_end(total=None): ...@@ -237,13 +237,13 @@ def print_end(total=None):
total.scenarios_passed)) total.scenarios_passed))
steps_details = [] steps_details = []
kinds_and_colors = { kinds_and_colors = (
'failed': '\033[0;31m', ('failed', '\033[0;31m'),
'skipped': '\033[0;36m', ('skipped', '\033[0;36m'),
'undefined': '\033[0;33m' ('undefined', '\033[0;33m'),
} )
for kind, color in kinds_and_colors.items(): for kind, color in kinds_and_colors:
attr = 'steps_%s' % kind attr = 'steps_%s' % kind
stotal = getattr(total, attr) stotal = getattr(total, attr)
if stotal: if stotal:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment