|
f049b5d7ee
|
Revised the form data used in the SummeryHelperTestCase test case, to avoid problems with SonarQube.
|
2023-03-01 00:51:24 +08:00 |
|
|
d5c2231794
|
Added the summary helper for the transaction form.
|
2023-02-28 15:49:01 +08:00 |
|
|
de48c848da
|
Revised the code in the common account shorts in testlib_txn.py.
|
2023-02-28 08:24:15 +08:00 |
|
|
9cdcc828a7
|
Added the add_txn function to testlib_txn.py and applied it in the transaction test cases.
|
2023-02-28 08:14:23 +08:00 |
|
|
cabfe268ce
|
Added the page_37 and page_size_15_default constants in the test_malformed test of the PaginationTestCase test case, for consistency.
|
2023-02-27 17:15:29 +08:00 |
|
|
26df71014b
|
Added the LIST_URL and DETAIL_URI constants to test_base_account.py, for consistency.
|
2023-02-27 16:37:01 +08:00 |
|
|
3126ee8153
|
Added the NEXT_URI constant to test_account.py, for consistency.
|
2023-02-27 16:37:01 +08:00 |
|
|
952061c4bb
|
Added the TEST_SERVER constant in testlib.py, for consistency.
|
2023-02-27 16:25:36 +08:00 |
|
|
788225826d
|
Added resource integrity to the decimal.js-light CDN in the test site.
|
2023-02-27 16:21:30 +08:00 |
|
|
c52081e528
|
Replaced decimal.js CDN from cdnjs with decimal.js-light CDN from jsDelivr in the base template of the test site.
|
2023-02-27 16:20:58 +08:00 |
|
|
1f235acdf9
|
Added resource integrity to the bootstrap CDN in the test site.
|
2023-02-27 16:07:59 +08:00 |
|
|
488e72679e
|
Revised the NextUriTestCase view, split the test_next_uri test into the two test_next_uri and test_no_next_uri tests, and replaced the decorator with add_url_rule to work around the security audit from SonarQube.
|
2023-02-27 15:57:39 +08:00 |
|
|
6d43b14862
|
Added CSRF to the test_next_uri test in the NextUriTestCase test case.
|
2023-02-27 15:35:35 +08:00 |
|
|
05fde3a742
|
Added the transaction management.
|
2023-02-27 15:28:45 +08:00 |
|
|
f25c993b75
|
Revised the translation of the test site.
|
2023-02-27 10:30:19 +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 |
|
|
a73e3204b9
|
Renamed the "accounting.utils.next_url" module to "accounting.utils.next_uri".
|
2023-02-20 16:08:32 +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 |
|
|
d8e0e30c41
|
Revised the coding style in the test_init test of the BaseAccountCommandTestCase test case.
|
2023-02-08 10:47:55 +08:00 |
|
|
40e64c4d2e
|
Rewrote the test_init test of the BaseAccountCommandTestCase test case to test all the content imported. The translations are not hard-coded to Mandarin now.
|
2023-02-08 10:28:41 +08:00 |
|
|
356d10eb6e
|
Added the test_api_exists test to the CurrencyTestCase test case.
|
2023-02-07 21:44:58 +08:00 |
|
|
31dc8fab04
|
Changed the type hint of the "current_user" pseudo property of the AbstractUserUtils class to return None when the user has not logged in.
|
2023-02-07 16:00:51 +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 |
|
|
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 |
|
|
7873e16cc3
|
Added the editor2 user to the test site.
|
2023-02-06 23:28:21 +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 |
|
|
2a6c5de6d6
|
Removed the unused clients from the setUp method of the BaseAccountTestCase test case.
|
2023-02-06 21:37:41 +08:00 |
|
|
6b94cfb908
|
Removed excess blank lines in test_account.py and test_base_account.py.
|
2023-02-06 19:57:19 +08:00 |
|
|
b7dd53d2f9
|
Added a complex query to the test_malformed test of the QueryKeywordParserTestCase test case.
|
2023-02-04 14:54:32 +08:00 |
|
|
b07b0e3be4
|
Added a complex query to the test_default test of the QueryKeywordParserTestCase test case.
|
2023-02-04 14:53:18 +08:00 |
|
|
e7fb2288ce
|
Revised the parse_query_keywords utility to handle the case with an open double quotation mark without its corresponding close double quotation mark.
|
2023-02-04 14:51:09 +08:00 |
|
|
17ba7659b6
|
Removed the CSRF token from the NextUriTestCase test case, for simplicity.
|
2023-02-04 14:38:25 +08:00 |
|
|
fd63149066
|
Revised the pagination utility to handle the empty data. better
|
2023-02-04 12:19:30 +08:00 |
|
|
b9cecf343a
|
Added the generic type to the pagination utility in the PaginationTestCase test case.
|
2023-02-04 11:09:20 +08:00 |
|
|
5090e59bb1
|
Added to redirect when the page size is invalid in the Pagination utility.
|
2023-02-04 10:55:49 +08:00 |
|
|
90a8229db9
|
Revised the Pagination so that the page size and page number that are the same as the default values are redirected and removed, too.
|
2023-02-04 10:37:39 +08:00 |
|
|
8be44ccf5f
|
Renamed the is_needed property to is_paged in the Pagination utility.
|
2023-02-04 10:26:28 +08:00 |
|
|
0d8cf85ec0
|
Removed an excess blank line in test_utils.py.
|
2023-02-04 09:51:19 +08:00 |
|
|
6e212f0e33
|
Revised the Pagination utility to handle the malformed and illegal page number and page size values.
|
2023-02-04 09:34:52 +08:00 |
|
|
2fbe137243
|
Added test_utils.py with the NextUriTestCase, QueryKeywordParserTestCase, and PaginationTestCase test cases for the independent utilities.
|
2023-02-04 08:12:24 +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 |
|
|
8364025668
|
Split the BaseAccountTestCase into BaseAccountCommandTestCase and BaseAccountTestCase, and rewrote the BaseAccountTestCase 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 |
|
|
fce9d04896
|
Removed SQLALCHEMY_ECHO from the test site.
|
2023-02-03 12:57:53 +08:00 |
|
|
c68786f78a
|
Revised the import in the test_init test of the BaseAccountTestCase test case.
|
2023-02-03 12:57:53 +08:00 |
|
|
581e803707
|
Moved the user utilities from the "accounting.database" module to the "accounting.utils.users" module, and simplified its use.
|
2023-02-03 12:57:53 +08:00 |
|
|
2964f206a6
|
Revised the test site to use the secret key specified in the environment variables when possible, so that the secret key and session keeps in the development environment.
|
2023-02-03 12:55:55 +08:00 |
|
|
e29b99b0a7
|
Merged the "accounting.base_account.models" and "accounting.account.models" modules into the new "accounting.modules" module, so that the data models can reference one another.
|
2023-02-03 12:55:54 +08:00 |
|
|
e9f6b769f4
|
Added the account management.
|
2023-02-03 12:55:54 +08:00 |
|
|
14638f574e
|
Added the initial application with the main account list, the pagination, the query, the permission, the localization, the documentation, the test case, and a test demonstration site.
|
2023-02-03 12:55:33 +08:00 |
|