Skip to content

Commit

Permalink
fixed tests for the entry date fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Jan 10, 2019
1 parent 95d1903 commit 65d1068
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_entry_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,28 @@ def test_entry_dates_wrapping_years():
amount='123',
status='D',
year=2000,
month=12,
day=31,
)

# Regular statement
statement(transactions, dict(data.items()))
statement(transactions, dict(
data.items(),
month=1,
day=1,
))

# Statement which wraps to the future
statement(transactions, dict(
data.items(),
month=12,
day=31,
entry_day=1,
entry_month=1,
))
# Statement which wraps the past year
statement(transactions, dict(
data.items(),
month=1,
day=1,
entry_day=31,
entry_month=12,
))

0 comments on commit 65d1068

Please sign in to comment.