Skip to content

Update test parameterization for task_type#110

Merged
tekrajchhetri merged 1 commit intofix_json_op_issuefrom
tekrajchhetri-fix-test
Apr 9, 2026
Merged

Update test parameterization for task_type#110
tekrajchhetri merged 1 commit intofix_json_op_issuefrom
tekrajchhetri-fix-test

Conversation

@tekrajchhetri
Copy link
Copy Markdown
Collaborator

@tekrajchhetri tekrajchhetri commented Apr 9, 2026

Removed 'keyphrase_extraction' from task_type parameterization in tests based on the updated code.

Removed 'keyphrase_extraction' from task_type parameterization in tests.
@tekrajchhetri tekrajchhetri merged commit 6d8f8f6 into fix_json_op_issue Apr 9, 2026
2 of 6 checks passed
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies src/tests/task_detection_test.py by removing keyphrase_extraction from the task_type parameterization in test_task_type_from_config. The review feedback indicates that this change reduces test coverage for a supported task type, potentially leading to undetected regressions, and suggests re-including it to ensure proper functionality.



@pytest.mark.parametrize("task_type", ["ner", "extraction", "keyphrase_extraction"])
@pytest.mark.parametrize("task_type", ["ner", "extraction"])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The keyphrase_extraction task type is still defined in src/utils/task_detection.py (e.g., in DEFAULT_TAXONOMY and TOOLS_BY_TASK_TYPE). Removing it from this test's parameterization reduces test coverage for a supported task type, which could lead to undetected regressions if its handling changes. It should be included to ensure proper functionality.

Suggested change
@pytest.mark.parametrize("task_type", ["ner", "extraction"])
@pytest.mark.parametrize("task_type", ["ner", "extraction", "keyphrase_extraction"])

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