|
271d98aa8a
|
Fixed to work with httpx 0.28.0.
|
2024-12-03 07:12:34 +08:00 |
|
|
0ae00bce79
|
Changed the properties of the test cases from public to private.
|
2023-07-29 10:11:45 +08:00 |
|
|
501c4b1d22
|
Added missing documentation to the global variables, class properties, and object properties.
|
2023-07-29 10:11:44 +08:00 |
|
|
9072de82d4
|
Added the "decode_next" utility in the "accounting.utils.next_uri" module, and applied the "encode_next" and "decode_next" utilities to the NextUriTestCase test case, so that the test case do not need to get involved into the detail of the next URI encryption.
|
2023-07-29 10:03:45 +08:00 |
|
|
818c357613
|
Revised the next URI utilities to apply URLSafeSerializer for encoding and decoding the next URI, in order to prevent tampering with the next URI.
|
2023-05-23 09:30:19 +08:00 |
|
|
b397515457
|
Removed the size restriction in the next URI utilities. Buffer overflow may happen with any parameter, not only the "next" parameter. It should be solved in uWSGI, but not the application.
|
2023-05-18 23:30:36 +08:00 |
|
|
482a0faa23
|
Added safeguard to the next URI utilities from invalid or insecure next URI.
|
2023-05-17 16:26:35 +08:00 |
|
|
4c2dcc5070
|
Renamed the project from "Mia! Accounting Flask" to "Mia! Accounting".
|
2023-04-04 18:26:54 +08:00 |
|
|
5571c0d01f
|
Renamed all the is_XXX_needed properties to is_need_XXX. For example, especially the is_offset_needed property to is_need_offset, to be clear and understandable.
|
2023-03-18 22:52:29 +08:00 |
|
|
98e1bad413
|
Renamed the test_not_needed test to test_not_need in the PaginationTestCase test case.
|
2023-03-18 22:43:53 +08:00 |
|
|
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 |
|
|
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 |
|
|
952061c4bb
|
Added the TEST_SERVER constant in testlib.py, for consistency.
|
2023-02-27 16:25:36 +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 |
|
|
a73e3204b9
|
Renamed the "accounting.utils.next_url" module to "accounting.utils.next_uri".
|
2023-02-20 16:08:32 +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 |
|