seitime-frappe/frappe/tests
Ritwik Puri b41379c78b
fix: misc fixes (integer primary keys) (#16307)
* fix: misc fixes

local.x gets resetted on every request so switched to a simple dict

simplified is_val_used in set_next_val function for sequences

* chore: use multisql for sequence methods

* fix: fields not updating on form

* minor(base_input): removed unnecessary branching in update_input

* chore: remove prints and rename autoincremented_status_map

* chore: added proper type hint + comment + formatting

* fix: added searching in cast_name rather than handling it manually

* fix: share condition query + test_build_match_conditions

* fix: add cast_name to more places

* test: test for sequence

* fix: sequence functions

* fix: inherit frappetestcase

* minor: attach sequence methods to db context local

* chore: update sequence function names in Database

use frappe.db for sequences in naming.py

* fix: convert filename to str (for autoincremented doctypes)

* chore: better regex for modifying values for postgres

* minor: allow changing name column type (if no data is present in the doctype)

* refactor: validate_autoname

converted it to a simple function
enabled changing autoincrement autoname from customize form

* fix: use sql_ddl for change_column_type in postgres

* fix: use not null constraint in postgres when changing name type

* fix(test): updated test_autoincremented_doctype_transition with transitioning when no data is present

* fix(test): updated test_cast_name

probably messed up during rebase

* fix(test): used rollback upon error in transaction for postgres

* chore: use frappe.db.x methods for sequences

* minor: use temporary sequences in test

* minor: use generate_hash for sequence naming in sequence tests

* chore: replace sequence imports with frappe.db.x

* chore: move out casting name fields to a separate method

* refactor: cast_name

more explicit cases for casts and added docstring

* fix: added space in test_cast_name

* chore: fix linter

* chore: better naming for can_change_name_column_type

* chore: add comment for autoincremented_site_status_map

* chore: update/add docstrings
2022-04-29 15:06:03 +05:30
..
data test: Add tests for optimize_file 2021-08-25 17:17:39 +05:30
__init__.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_api.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_assign.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_auth.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_background_jobs.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_base_document.py fix: use assertEqual instead of assertEquals for Python 3.11 compatibility 2022-03-21 11:05:43 +00:00
test_boilerplate.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_bot.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_child_table.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_client.py fix: better validation for child insert 2022-04-24 10:38:58 +05:30
test_commands.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_cors.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_db.py chore: fix linter 2022-04-20 17:56:48 +05:30
test_db_query.py fix: misc fixes (integer primary keys) (#16307) 2022-04-29 15:06:03 +05:30
test_db_update.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_defaults.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_docstatus.py feat: utility methods for docstatus (#15515) 2022-02-04 07:41:25 +00:00
test_document.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_document_locks.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_domainification.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_dynamic_links.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_email.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_exporter_fixtures.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_fixture_import.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_fmt_datetime.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_fmt_money.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_form_load.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_formatter.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_frappe_client.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_geo_ip.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_global_search.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_goal.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_hooks.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_linked_with.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_listview.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_monitor.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_naming.py test: naming on child tables 2022-04-14 16:33:23 +05:30
test_nestedset.py test: Added tests for nestedset 2022-04-12 19:06:01 +05:30
test_oauth20.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_password.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_patches.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_pdf.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_permissions.py test: fix badly written tests 2022-04-22 19:47:54 +05:30
test_printview.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_query_builder.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_query_report.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_rate_limiter.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_recorder.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_redis.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_rename_doc.py Merge branch 'develop' of github.com:frappe/frappe into bg-rename_doc 2022-04-14 13:41:56 +05:30
test_safe_exec.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_scheduler.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_search.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_seen.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_sequence.py fix: misc fixes (integer primary keys) (#16307) 2022-04-29 15:06:03 +05:30
test_sitemap.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_test_utils.py test: improve FrappeTestCase 2022-04-22 19:47:54 +05:30
test_translate.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_twofactor.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_utils.py test: set name to create client script 2022-04-13 18:36:44 +05:30
test_webform.py test: test hook to get website_list_context 2021-09-03 16:55:44 +05:30
test_website.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
tests_geo_utils.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
translation_test_file.txt feat: allow splitting _() function call on multiple lines 2022-03-26 16:18:35 +05:30
ui_test_helpers.py refactor: used list comprehension 2022-04-22 16:59:03 +05:30
utils.py test: explicitly start transaction 2022-04-23 13:08:02 +05:30