Renamed the "j_date" variable to "date" in the "_init_data" method of the ReportTestData class in test_report.py.

This commit is contained in:
依瑪貓 2023-04-26 13:22:46 +08:00
parent 359c335662
commit b5aa7e923f

View File

@ -450,11 +450,11 @@ class ReportTestData(BaseTestData):
year: int = today.year - 5 year: int = today.year - 5
month: int = today.month month: int = today.month
while True: while True:
j_date: dt.date = dt.date(year, month, 5) date: dt.date = dt.date(year, month, 5)
if j_date > today: if date > today:
break break
self._add_simple_journal_entry( self._add_simple_journal_entry(
(j_date - today).days, "USD", (date - today).days, "USD",
"Salary薪水", "1200", Accounts.BANK, Accounts.SERVICE) "Salary薪水", "1200", Accounts.BANK, Accounts.SERVICE)
month = month + 1 month = month + 1
if month > 12: if month > 12: