Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ def unpost_listbox(self, _event: Union[None, tk.Event] = None) -> str:
def get_value(self) -> str:
return self._entry_var.get() # type: ignore[no-any-return] # mypy bug

def get_filtered_items(self) -> list[str]:
"""Get the list of currently filtered items in the listbox."""
if self._listbox is None:
return []
return list(self._listbox.get(0, END))

def set_value(self, text: str, close_dialog: bool = False) -> None:
self._set_var(text)

Expand Down
16 changes: 12 additions & 4 deletions tests/integration_frontend_tkinter_parameter_editor_table.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
#!/usr/bin/env python3

"""
BDD Integration Tests for Parameter Editor Table Frontend.
Integration tests for the ParameterEditorTable class.

This module contains integration tests that validate complete user workflows
for the parameter editor table, focusing on user behavior and business value
rather than implementation details.
This file contains integration tests that verify component interactions and workflows
in the parameter editor table. These tests validate how multiple components work together,
testing through both public and internal APIs with appropriate mocking of external dependencies.

While these tests are behavior-focused and include Given-When-Then structure, they are
integration tests rather than pure BDD tests, as they:
- Test internal methods and private APIs (prefixed with _)
- Mock internal components (BaseWindow, tkinter widgets)
- Verify implementation details and method calls

For unit tests of individual methods and implementation details, see unit_frontend_tkinter_parameter_editor_table.py.

This file is part of ArduPilot Methodic Configurator. https://github.com/ArduPilot/MethodicConfigurator

Expand Down
Loading
Loading