Skip to content

Commit

Permalink
fixup! Added s-format and clear gating.yaml issues description
Browse files Browse the repository at this point in the history
  • Loading branch information
mvalik committed Jan 26, 2024
1 parent 49e3d36 commit 7e9cb61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions greenwave/policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,14 @@ def to_text(self, test_count):
msgstr = ""
if self.non_test_msgs:
msgstr = ", ".join(
self.sformat(f"{{num}} {msg}", num) for (msg, num) in self.non_test_msgs.items()
self.sformat(f"{{num}} {msg}", num)
for (msg, num) in sorted(self.non_test_msgs.items())
)
if self.test_msgs:
addmsg = self.sformat("Of {num} required test{s}, ", test_count)
addmsg += ", ".join(
self.sformat(f"{{num}} {msg}", num) for (msg, num) in self.test_msgs.items()
self.sformat(f"{{num}} {msg}", num)
for (msg, num) in sorted(self.test_msgs.items())
)
if msgstr:
msgstr = f"{msgstr}. {addmsg}"
Expand Down

0 comments on commit 7e9cb61

Please sign in to comment.