Skip to content

Commit

Permalink
review: rename variable and add .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriele-wolfox committed Dec 12, 2022
1 parent fb9cc2f commit 587a31f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# editor and IDE paraphernalia
.idea
6 changes: 3 additions & 3 deletions summarize_test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def is_test_artifact(test_entry):
"repo",
"branch",
]
for kw in should_have:
if kw not in test_entry:
for field in should_have:
if field not in test_entry:
return False
return True

Expand Down Expand Up @@ -415,7 +415,7 @@ def format_by_test(summary, structure, file_out=None):


def format_duration(duration):
"pretty-print duration"
"""pretty-print duration"""
minutes = duration.seconds // 60
seconds = duration.seconds % 60
return f"{minutes} min {seconds} sec"
Expand Down

0 comments on commit 587a31f

Please # to comment.