-
Notifications
You must be signed in to change notification settings - Fork 49
Adding AutoSeg Tests #398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Adding AutoSeg Tests #398
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
Reviewer's GuideThis PR introduces a comprehensive suite of unit tests across the AutoSegmentation feature set and adjusts several components to improve testability, including parameter handling in widgets and simplification of filtering logic. Class diagram for updated SegmentSelectorWidgetclassDiagram
class SegmentSelectorWidget {
+__init__(segmentation_list: list[str] = None, data_location: str = "data/csv", update_callback: Callable[[], None] | None = None)
-_selected_list: list[str]
-_tree_choices_ref: dict[str, list[QTreeWidgetItem]]
+_selected_list_add_or_remove(body_text: str, state: Qt.CheckState | int)
+_uniform_selection(check: Qt.CheckState | int)
+_child_states(item: QTreeWidgetItem, body_text: str)
}
SegmentSelectorWidget --|> QtWidgets.QWidget
Class diagram for updated ButtonInputBoxclassDiagram
class ButtonInputBox {
-_send: Callable[[str], None] | None
-_close: Callable[[], None] | None
-text: QtWidgets.QLineEdit | None
-delete_word: str | None
-typed_text: str | None
+_positive_action()
+_negative_action()
}
Class diagram for updated SegmentationListFilter functionsclassDiagram
class SegmentationListFilter {
+_dict_row_filter(data: pandas.DataFrame, csv_column: str = None, filter_values: dict | list | None = None) pandas.DataFrame
+_column_filter(data: pandas.DataFrame, column_list: list[str]) pandas.DataFrame
+_strip_whitespace(data: pandas.DataFrame) pandas.DataFrame
}
Class diagram for updated AutoSegmentWindowclassDiagram
class AutoSegmentWindow {
+__init__(view_state: AutoSegmentViewState)
-_view_state: AutoSegmentViewState
-_tree_selector: SegmentSelectorWidget
-_start_button: QtWidgets.QPushButton
-_progress_text: QtWidgets.QTextEdit
}
AutoSegmentWindow --|> QtWidgets.QWidget
AutoSegmentWindow o-- SegmentSelectorWidget
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Introduce a comprehensive suite of pytest tests for the AutoSegmentation module’s view widgets, model workflows, database persistence, style sheet reader, view state management, and data filtering utilities, while refactoring core classes to improve testability and robustness.
New Features:
Bug Fixes:
Enhancements:
Tests: