|
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 |
|
|
1d6a53f7cd
|
Revised the account form so that the if-offset-needed option is only available for real accounts.
|
2023-03-12 01:34:42 +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 |
|
|
3126ee8153
|
Added the NEXT_URI constant to test_account.py, for consistency.
|
2023-02-27 16:37:01 +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 |
|
|
2e3633b205
|
Revised to sort the accounts in the same base before saving an account to a new base, and added the test_change_base_code test to the AccountTestCase test case for this.
|
2023-02-25 09:44:17 +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 |
|
|
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 |
|
|
f7ce94902f
|
Revised the AccountTestCase test case, added the test_add, test_basic_update, test_update_not_modified, test_created_updated_by, test_l10n, and test_delete test to replace the simple test_change_base test.
|
2023-02-07 11:29:09 +08:00 |
|
|
52351c52bc
|
Revised the imports in test_base_account.py and test_account.py.
|
2023-02-06 21:45:56 +08:00 |
|
|
591fb4a7ab
|
Replaced the UserClient class and the get_user_client function with the get_client function in the tests, for simplicity.
|
2023-02-06 21:45:28 +08:00 |
|
|
6b94cfb908
|
Removed excess blank lines in test_account.py and test_base_account.py.
|
2023-02-06 19:57:19 +08:00 |
|
|
cea2a44226
|
Added the order and sorting routes to the test_nobody, test_viewer, and test_editor tests of the AccountTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|
|
784e7bde49
|
Added the test_reorder test to the AccountTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|
|
60280f415d
|
Shortened the variable names in the test_change_base test of the AccountTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|
|
6a83f95c9f
|
Added the test_change_base test to the AccountTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|
|
4aed2f6ba7
|
Renamed the "testsite" application to "test_site".
|
2023-02-03 12:57:53 +08:00 |
|
|
6876fdf75e
|
Added the test_editor test to the AccountTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|
|
d9624c7be6
|
Revised the AccountTestCase test case for simplicity.
|
2023-02-03 12:57:53 +08:00 |
|
|
dd3690dd6a
|
Added the AccountTestCase test case with the test_nobody and test_viewer tests.
|
2023-02-03 12:57:53 +08:00 |
|
|
3312c835fd
|
Added the AccountCommandTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|