|
d9ecf51c6d
|
Added the "create_test_app" function in testlib.py to replace "create_app" to prevent common mistakes. Added a get_csrf_token_view route to the application, and changed the get_csrf_token function to retrieve the CSRF token with the route without parsing the HTML for the CSRF token.
|
2023-03-14 21:28:35 +08:00 |
|
|
9cd9e90be0
|
Renamed the variables in the tests of the AccountTestCase and CurrencyTestCase test cases, for simplicity.
|
2023-03-01 21:09:14 +08:00 |
|
|
2839dc60b4
|
Revised the documentation of the PREFIX constant in test_account.py, test_currency.py, and test_transaction.py.
|
2023-03-01 20:22:27 +08:00 |
|
|
5a6e4f5b5e
|
Replaced the import for the db object from the accounting model with the test site in test_account.py and test_currency.py. They are the same object, and the db object from the test site is safe at the compile time.
|
2023-02-25 18:04:32 +08:00 |
|
|
f878ba5535
|
Revised to rewind the time in the test_update_not_modified tests of the AccountTestCase and CurrencyTestCase test cases, so that the test cases don't have to wait for the time to be different.
|
2023-02-25 18:04:29 +08:00 |
|
|
e7c36ba13a
|
Revised the type hints in the test_update_not_modified tests of the AccountTestCase and CurrencyTestCase test cases.
|
2023-02-25 18:04:27 +08:00 |
|
|
d9c08568cf
|
Revised the test_update_not_modified tests to be more specific in the AccountTestCase and CurrencyTestCase test cases.
|
2023-02-21 09:38:31 +08:00 |
|
|
2ab60b2224
|
Replaced "unittest.TestCase.assert*" methods with "assert" in the common test functions, for simplicity.
|
2023-02-13 19:18:41 +08:00 |
|
|
36f55900c7
|
Renamed "fh" to "fp" when opening files, following the Python convention.
|
2023-02-09 00:02:14 +08:00 |
|
|
d99f592cff
|
Merged the "accounting.database" module into the "accounting" module. It has only one member as "db", the database instance, and does not need to be separated into another file.
|
2023-02-08 11:13:09 +08:00 |
|
|
354f1ff3d8
|
Moved the currency data from the "accounting.currency.commands" module into the currencies.csv file, separating the code and the data. Rewrote the test case to test against each all the content imported. The locales are read from the CSV file instead of hard-coded in the code, so that the translations are not hard-coded to Mandarin.
|
2023-02-08 10:50:20 +08:00 |
|
|
356d10eb6e
|
Added the test_api_exists test to the CurrencyTestCase test case.
|
2023-02-07 21:44:58 +08:00 |
|
|
a78057a8c3
|
Renamed the variable in the test_created_updated_by test of the CurrencyTestCase test case.
|
2023-02-07 09:47:32 +08:00 |
|
|
0491614ae4
|
Added the PREFIX constant to simplify the CurrencyTestCase test case.
|
2023-02-07 09:46:54 +08:00 |
|
|
7b2089bdfb
|
Revised the currency test cases.
|
2023-02-07 08:24:24 +08:00 |
|
|
be8dc21c5a
|
Revised the code in the test_l10n test of the CurrencyTestCase test case.
|
2023-02-07 00:38:41 +08:00 |
|
|
570c84c196
|
Added the currency management.
|
2023-02-07 00:13:33 +08:00 |
|