Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lettuce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
lettuce
Commits
499abdd2
Commit
499abdd2
authored
Oct 29, 2014
by
Damien Nozay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cannot assume that dict items are ordered
parent
19e6f8cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lettuce/plugins/colored_shell_output.py
+6
-6
No files found.
lettuce/plugins/colored_shell_output.py
View file @
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment