From 7e9cb6121deeabe2f7fe2f0448d1d2253b7ebb5a Mon Sep 17 00:00:00 2001 From: Valerij Maljulin Date: Fri, 26 Jan 2024 13:55:13 +0100 Subject: [PATCH] fixup! Added s-format and clear gating.yaml issues description --- greenwave/policies.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/greenwave/policies.py b/greenwave/policies.py index 524365c..26e42f4 100644 --- a/greenwave/policies.py +++ b/greenwave/policies.py @@ -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}"