Skip to content

W2026-31 weko-search-ui 単体テスト修正 - #1226

Open
ivis-kondo wants to merge 5 commits into
ivis-weko3-dev:feature/W2026-31from
ivis-kondo:fix/ut-weko-search-ui-W2026-31
Open

W2026-31 weko-search-ui 単体テスト修正#1226
ivis-kondo wants to merge 5 commits into
ivis-weko3-dev:feature/W2026-31from
ivis-kondo:fix/ut-weko-search-ui-W2026-31

Conversation

@ivis-kondo

Copy link
Copy Markdown
  • 監査ログテーブルのフィクスチャ user_activity_log_partition_table を追加
  • パラメータ化が必要なテストメソッドに関しては、parametrizeを用いてパラメータ化
  • その他、バージョンアップに伴う単体テストの修正

- Updated test_ItemManagementBulkDelete_index to include user_activity_log_partition_table.
- Fixed return_value typo in patch for check_import_items_task.apply_async.
- Refactored test_ItemImportView methods to use client_request_args for API calls.
- Changed file content in test_json_ld_mapper to include Japanese text.
- Updated multiple test functions in test_utils.py to use search_item_file_pipeline instead of es_item_file_pipeline for consistency.
- Updated test_get_results_setting to assert tuple structure and values.
- Enhanced test_get_sort_key to validate sort key presence in configuration.
- Parameterized test_get_custom_sort for ascending and descending sort types.
- Improved test_get_nested_sorting to check nested sorting functionality.
- Adjusted test_get_item_type_aggs to utilize request context for user identity.
- Modified test_get_permission_filter to include minimum_should_match in query assertions.
- Enhanced test_create_blueprint to validate REST endpoints creation.
- Updated test_IndexSearchResource_get_facet to ensure correct response handling.
- Refined test_check_import_items_task to mock async task calls properly.
- Enhanced test_is_import_running and test_check_celery_is_run for better task state validation.
- Refactored test_getEncode to use parameterized testing for encoding checks.
- Improved test_cancel_export_all to ensure proper task revocation and cleanup.
- Updated test_check_index_access_permissions to ensure proper access control checks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant