Moved the Accounts shortcut from testlib_journal_entry.py to testlib.py.

This commit is contained in:
2023-03-23 17:26:27 +08:00
parent 361b18e411
commit 7515032082
7 changed files with 35 additions and 36 deletions

View File

@@ -26,7 +26,7 @@ import httpx
from flask import Flask
from test_site import db
from testlib import NEXT_URI
from testlib import NEXT_URI, Accounts
NON_EMPTY_NOTE: str = " This is \n\na test."
"""The stripped content of an non-empty note."""
@@ -34,31 +34,6 @@ EMPTY_NOTE: str = " \n\n "
"""The empty note content."""
class Accounts:
"""The shortcuts to the common accounts."""
CASH: str = "1111-001"
PETTY_CASH: str = "1112-001"
BANK: str = "1113-001"
NOTES_RECEIVABLE: str = "1131-001"
RECEIVABLE: str = "1141-001"
PREPAID: str = "1258-001"
NOTES_PAYABLE: str = "2131-001"
PAYABLE: str = "2141-001"
SALES: str = "4111-001"
SERVICE: str = "4611-001"
AGENCY: str = "4711-001"
RENT_EXPENSE: str = "6252-001"
OFFICE: str = "6253-001"
TRAVEL: str = "6254-001"
POSTAGE: str = "6256-001"
UTILITIES: str = "6261-001"
INSURANCE: str = "6262-001"
MEAL: str = "6272-001"
INTEREST: str = "7111-001"
DONATION: str = "7481-001"
RENT_INCOME: str = "7482-001"
def get_add_form(csrf_token: str) -> dict[str, str]:
"""Returns the form data to add a new journal entry.