seitime-frappe/frappe/tests
Ankush Menat 5ef8577cff
fix!: Stricter requirement for permission hooks (#24253)
BREAKING CHANGE:

before: `has_permission` hooks need to explicitly return "False" to block a user.

after: `has_permission` hook need to explicitly return "True" (or truthy) value to allow user. They will be blocked otherwise.

Why? Everything related to permission should be block by default and allow if some checks pass.
2024-01-11 01:35:08 +05:30
..
data test: Add test for lazy_import 2022-08-11 23:53:21 +05:30
__init__.py test: Case to validate Web Link authentication 2022-05-30 15:35:47 +05:30
test_api.py test: unit test to check arabic filename export 2023-12-07 13:42:24 +05:30
test_api_v2.py test: Split API v2 tests 2023-10-17 10:27:37 +05:30
test_assign.py refactor: Consider singles for dynamic set_value usage (#21367) 2023-06-14 10:46:25 +05:30
test_auth.py refactor: make login tracker support arbitrary keys 2023-10-17 17:18:11 +05:30
test_background_jobs.py fix: limit job count in RQ failed registry (#22162) 2023-08-23 09:21:51 +00:00
test_base_document.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_boilerplate.py feat: Dynamically generate license text (#22299) 2023-09-05 05:45:27 +00:00
test_boot.py refactor!: Disable server scripts by default 2023-08-23 14:49:05 +05:30
test_caching.py fix: frappe.clear_cache should drop all keys (#22156) 2023-08-23 11:02:45 +05:30
test_child_table.py ci: update pyupgrade 2023-07-14 14:24:08 +05:30
test_client.py revert: #22308 (#22389) 2023-09-13 14:34:52 +05:30
test_commands.py chore: add in some tests for backup 2023-12-26 11:09:08 +05:30
test_config.py chore: dead code removal (#18410) 2022-10-13 15:55:40 +05:30
test_cors.py test: ensure that Vary header is specified 2022-09-05 15:51:41 +05:30
test_dashboard_connections.py style: Linter 2023-12-11 18:24:28 +01:00
test_db.py fix: Don't run query if dn is None (#22475) 2023-09-19 15:11:15 +00:00
test_db_query.py fix: skip virtual fields in perm level checks during DB Query 2023-12-20 12:00:08 +05:30
test_db_update.py refactor: inline immediately returned variable 2023-08-08 18:09:49 +02:00
test_defaults.py chore: Only run on mariadb 2023-04-10 13:58:06 +05:30
test_deferred_insert.py fix: handle dict data in deferred_insert 2022-05-04 14:59:17 +05:30
test_docstatus.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_document.py test: base class update on has web view update 2023-12-29 22:02:38 +05:30
test_document_locks.py refactor: lint 2022-11-12 20:06:17 +05:30
test_domainification.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_dynamic_links.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_email.py fix: correct arg type 2024-01-04 18:39:15 +05:30
test_exporter_fixtures.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_fixture_import.py test: fix broken tests 2023-06-03 22:53:10 +05:30
test_fmt_datetime.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_fmt_money.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_form_load.py refactor: inline immediately returned variable 2023-08-08 18:09:49 +02:00
test_formatter.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_frappe_client.py fix!: Don't silently fail API auth 2023-11-01 17:51:23 +05:30
test_geo_ip.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_global_search.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_goal.py style: format all python files using black (#16453) 2022-04-12 10:59:25 +05:30
test_hooks.py fix!: Stricter requirement for permission hooks (#24253) 2024-01-11 01:35:08 +05:30
test_linked_with.py fix: don't allow deleting original doc if amendment exists 2023-12-20 13:11:34 +05:30
test_listview.py fix: validate fieldname in get_group_by_count (#21932) 2023-08-06 17:33:34 +05:30
test_model_utils.py fix: validate fieldname in get_group_by_count (#21932) 2023-08-06 17:33:34 +05:30
test_modules.py test: skip tests on RO app paths which require write access (#21878) 2023-07-31 12:46:23 +05:30
test_monitor.py fix: misc dx improvemnts (#22188) 2023-08-28 07:01:25 +00:00
test_naming.py test: Patch hooks for testing (#21702) 2023-07-17 12:41:27 +05:30
test_nestedset.py refactor!: remove unused parameter from rebuild_tree, add type hints (#24123) 2024-01-04 18:13:12 +05:30
test_non_nullable_docfield.py fix: adapt tests to actually work 2023-11-16 16:14:50 +05:30
test_oauth20.py perf: defer loading JWT 2023-06-24 19:50:08 +05:30
test_password.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_password_strength.py test: retry flaky password_strength test thrice 2023-12-20 13:57:48 +05:30
test_patches.py fix(test): ensure tests construe the site url from its constructor 2023-08-23 12:04:57 +02:00
test_pdf.py build(deps): PyPDF2 -> pypdf 2023-06-10 20:47:27 +05:30
test_perf.py revert: #22308 (#22389) 2023-09-13 14:34:52 +05:30
test_permissions.py fix: update correct role permission rule 2023-09-18 13:45:20 +05:30
test_printview.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_query.py test: ensure stricter filters when validate_filters is passed 2023-05-31 14:16:52 +05:30
test_query_builder.py feat: Truncate QB function 2023-05-26 14:03:47 +05:30
test_query_report.py test: build_xlsx_data with filters 2023-12-01 13:09:31 +05:30
test_rate_limiter.py refactor: frappe.cache() usage to frappe.cache (#21282) 2023-06-08 11:47:17 +05:30
test_rating.py fix: don't allow setting an invalid rating (#22633) 2023-10-10 15:38:58 +05:30
test_recorder.py fix(test_recorder): get the correct request (#24143) 2024-01-06 09:42:53 +05:30
test_redis.py test: bg jobs test cleanup (#18767) 2022-11-05 14:08:35 +05:30
test_rename_doc.py refactor!: Drop previously deprecated code 2023-06-13 16:00:43 +05:30
test_reportview.py fix: test reportview 2022-11-28 12:16:18 +01:00
test_safe_exec.py feat: Allow usage of print() within safe_exec() (#23084) 2023-11-20 12:45:41 +05:30
test_scheduler.py refactor(scheduler): drop unused parameter (#23174) 2023-11-11 11:29:12 +05:30
test_search.py test: fix test failure from parallel merge 2023-10-16 16:42:46 +05:30
test_seen.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
test_sequence.py fix(sequence): Setup & use SequenceGeneratorLimitExceeded error 2022-06-17 12:10:43 +05:30
test_sitemap.py chore: db.get_all -> get_all 2022-08-22 11:35:14 +05:30
test_test_utils.py test: Add cold start tests 2023-10-18 17:55:48 +05:30
test_translate.py fix: add _lt to extractors 2024-01-10 21:47:55 +05:30
test_twofactor.py refactor: inline immediately returned variable 2023-08-08 18:09:49 +02:00
test_utils.py fix: validate_email_addr should return email id as it is if it is valid (#22613) 2023-10-11 12:37:48 +05:30
test_virtual_doctype.py test: crud with virtual child table 2023-08-08 16:22:59 +05:30
test_webform.py refactor: frappe.cache() usage to frappe.cache (#21282) 2023-06-08 11:47:17 +05:30
test_website.py fix(redirect): make the status codes a select field instead of int 2023-12-22 12:25:41 +05:30
tests_geo_utils.py test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +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: simplify conditional logic 2023-12-05 11:14:41 +01:00
utils.py refactor: execute the last instance of a webhook in a request 2023-12-01 15:15:43 +05:30