Skip to content

Commit

Permalink
Don't hardcode length of the budord list
Browse files Browse the repository at this point in the history
We have the list, so we know the number of elements.
  • Loading branch information
kh31d4r authored and mosbth committed Nov 25, 2024
1 parent 9b96f31 commit 05b769a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_marvin_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def testSource(self):

def testBudord(self):
"""Test that marvin knows all the commandments"""
for n in range(1, 6):
for n, _ in enumerate(self.strings.get("budord")):
self.assertStringsOutput(marvin_actions.marvinBudord, f"budord #{n}", "budord", f"#{n}")

self.assertStringsOutput(marvin_actions.marvinBudord,"visa stentavla 1", "budord", "#1")
Expand Down

0 comments on commit 05b769a

Please sign in to comment.