From 6c455a615c57f7072b357b337503c1dce50f946f 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:23:53 +0800 Subject: [PATCH] Renamed the "j_date" variable to "date" in the "_add_journal_entry" method of the BaseTestData class in the lib module of the test site. --- tests/test_site/lib.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_site/lib.py b/tests/test_site/lib.py index 5d40f5b..1dc9e32 100644 --- a/tests/test_site/lib.py +++ b/tests/test_site/lib.py @@ -241,12 +241,12 @@ class BaseTestData(ABC): existing_j_id: set[int] = {x["id"] for x in self.__journal_entries} existing_l_id: set[int] = {x["id"] for x in self.__line_items} journal_entry_data.id = self.__new_id(existing_j_id) - j_date: dt.date \ + date: dt.date \ = dt.date.today() - dt.timedelta(days=journal_entry_data.days) self.__journal_entries.append( {"id": journal_entry_data.id, - "date": j_date, - "no": self.__next_j_no(j_date), + "date": date, + "no": self.__next_j_no(date), "note": journal_entry_data.note, "created_by_id": self.__current_user_id, "updated_by_id": self.__current_user_id})