fix(tui): restore missing mock attribute assignments in tui_app_coverage_steps
CI / quality (pull_request) Failing after 1s
CI / unit_tests (pull_request) Failing after 1s
CI / e2e_tests (pull_request) Failing after 1s
CI / build (pull_request) Failing after 1s
CI / integration_tests (pull_request) Failing after 1s
CI / helm (pull_request) Failing after 1s
CI / push-validation (pull_request) Failing after 1s
CI / lint (pull_request) Successful in 1m12s
CI / typecheck (pull_request) Successful in 1m21s
CI / security (pull_request) Successful in 1m22s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 1h5m19s
CI / quality (pull_request) Failing after 1s
CI / unit_tests (pull_request) Failing after 1s
CI / e2e_tests (pull_request) Failing after 1s
CI / build (pull_request) Failing after 1s
CI / integration_tests (pull_request) Failing after 1s
CI / helm (pull_request) Failing after 1s
CI / push-validation (pull_request) Failing after 1s
CI / lint (pull_request) Successful in 1m12s
CI / typecheck (pull_request) Successful in 1m21s
CI / security (pull_request) Successful in 1m22s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / status-check (pull_request) Failing after 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Successful in 1h5m19s
The _build_mock_textual() function in tui_app_coverage_steps.py was missing the attribute assignments that wire mock classes to the mock module objects. Without these assignments, the app module's import gate could not find App, Screen, Vertical, Horizontal, Static, TextArea, or Collapsible on the mock modules, causing _TEXTUAL_AVAILABLE to remain False and all tui_app_coverage and tui_mainscreen_sidebar scenarios to fail with AttributeError. Adds the 9 missing assignments: mock_textual_app.App = MockApp mock_textual_app.Screen = MockScreen mock_textual_containers.Vertical = MockVertical mock_textual_containers.Horizontal = MockHorizontal mock_textual_widgets.Header = MockHeader mock_textual_widgets.Footer = MockFooter mock_textual_widgets.Static = MockStatic mock_textual_widgets.TextArea = MockTextArea mock_textual_widgets.Collapsible = MockCollapsible
This commit is contained in:
@@ -126,6 +126,16 @@ def _build_mock_textual():
|
||||
def __exit__(self, *args):
|
||||
pass
|
||||
|
||||
mock_textual_app.App = MockApp
|
||||
mock_textual_app.Screen = MockScreen
|
||||
mock_textual_containers.Vertical = MockVertical
|
||||
mock_textual_containers.Horizontal = MockHorizontal
|
||||
mock_textual_widgets.Header = MockHeader
|
||||
mock_textual_widgets.Footer = MockFooter
|
||||
mock_textual_widgets.Static = MockStatic
|
||||
mock_textual_widgets.TextArea = MockTextArea
|
||||
mock_textual_widgets.Collapsible = MockCollapsible
|
||||
|
||||
return {
|
||||
"textual": mock_textual,
|
||||
"textual.app": mock_textual_app,
|
||||
|
||||
Reference in New Issue
Block a user