Skip to content

Commit

Permalink
Fix typos (#194)
Browse files Browse the repository at this point in the history
Found via `codespell -S *.svg -L yaerly`
  • Loading branch information
kianmeng committed Jan 5, 2024
1 parent ac60ef1 commit a096608
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion financeager/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Module defining expections of the financeager application."""
"""Module defining exceptions of the financeager application."""


class FinanceagerException(Exception):
Expand Down
8 changes: 4 additions & 4 deletions test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,15 @@ def test_list_month(self):
"add chili -4 -d {}-0{}-15", format_args=(self.pocket, month_nr + 1)
)
self.cli_run(
"add tomatos -6 -d {}-0{}-15", format_args=(previous_year, month_nr)
"add tomatoes -6 -d {}-0{}-15", format_args=(previous_year, month_nr)
)

for m in month_variants:
response = self.cli_run("list --month {}", format_args=m)
names = [v["name"] for v in response["elements"][DEFAULT_TABLE].values()]
self.assertIn("beans", names)
self.assertNotIn("chili", names)
self.assertNotIn("tomatos", names)
self.assertNotIn("tomatoes", names)

# Verify overwriting of 'filters' option
response = self.cli_run(
Expand All @@ -261,7 +261,7 @@ def test_list_month(self):
names = [v["name"] for v in response["elements"][DEFAULT_TABLE].values()]
self.assertIn("beans", names)
self.assertNotIn("chili", names)
self.assertNotIn("tomatos", names)
self.assertNotIn("tomatoes", names)

# Verify default behavior
response = self.cli_run("list --month")
Expand All @@ -275,7 +275,7 @@ def test_list_month(self):
else:
self.assertNotIn("beans", names)
self.assertNotIn("chili", names)
self.assertNotIn("tomatos", names)
self.assertNotIn("tomatoes", names)

def test_list_invalid_month(self):
month_nr = 13
Expand Down

0 comments on commit a096608

Please sign in to comment.