From ee5b447c23f97810522a349d67eed50ac6b3ade3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 26 Apr 2023 13:42:47 +0800 Subject: [PATCH] Renamed the "journal_entry_date" variable to "date" in the "__form" method of the JournalEntryData class in the lib module of the test site. --- tests/test_site/lib.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_site/lib.py b/tests/test_site/lib.py index d4a1c89..8e6fbdb 100644 --- a/tests/test_site/lib.py +++ b/tests/test_site/lib.py @@ -167,11 +167,10 @@ class JournalEntryData: :param is_update: True for an update operation, or False otherwise :return: The journal entry as a form. """ - journal_entry_date: dt.date \ - = dt.date.today() - dt.timedelta(days=self.days) + date: dt.date = dt.date.today() - dt.timedelta(days=self.days) form: dict[str, str] = {"csrf_token": csrf_token, "next": next_uri, - "date": journal_entry_date.isoformat()} + "date": date.isoformat()} for i in range(len(self.currencies)): form.update(self.currencies[i].form(i + 1, is_update)) if self.note is not None: