Skip to content

Commit 1de1ac6

Browse files
committed
Rework update tab tree call in tests.
1 parent 9e17155 commit 1de1ac6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

datashuttle/tui/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ def rename_file_or_folder(self, path_, new_name):
166166
path_.as_posix(),
167167
path_.parent / f"{new_name}{path_.suffix}",
168168
)
169-
self.query_one("#project_manager_screen").update_active_tab_tree()
169+
assert isinstance(
170+
self.screen, project_manager.ProjectManagerScreen
171+
)
172+
self.screen.update_active_tab_tree()
173+
170174
except BaseException as e:
171175
self.show_modal_error_dialog(
172176
f"Could not rename the file or folder."

0 commit comments

Comments
 (0)