Skip to content

Commit 8b80b4d

Browse files
committed
Refactor secret entry retrieval for improved readability in cheatsheets parser test
1 parent a59e914 commit 8b80b4d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

application/tests/cheatsheets_parser_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ class Repo:
6868
sections = {node.section for node in nodes}
6969
self.assertIn("Secrets Management Cheat Sheet", sections)
7070
secret_entry = next(
71-
(node for node in nodes if node.section == "Secrets Management Cheat Sheet"),
71+
(
72+
node
73+
for node in nodes
74+
if node.section == "Secrets Management Cheat Sheet"
75+
),
7276
None,
7377
)
7478
self.assertIsNotNone(secret_entry)

0 commit comments

Comments
 (0)