12 Commits

Author SHA1 Message Date
Will McGugan
568a83a226 Update tests/test_unmount.py
Co-authored-by: Darren Burns <darrenburns@users.noreply.github.com>
2024-09-09 10:43:18 +01:00
Will McGugan
03ad3af83f remove old hack 2024-09-07 17:52:25 +01:00
Will McGugan
207ea7a24e call next 2024-07-24 15:13:50 +01:00
Will McGugan
6b5015b266 mass renaming 2023-02-13 15:09:40 +00:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
Dave Pearson
afc7ba2a37 Run black over unmount tests 2023-01-09 13:57:49 +00:00
darrenburns
df37a9b90a Add get_child_by_id and get_widget_by_id (#1146)
* Add get_child_by_id and get_widget_by_id

* Remove redundant code

* Add unit tests for app-level get_child_by_id and get_widget_by_id

* Remove redundant test fixture injection

* Update CHANGELOG

* Enforce uniqueness of ID amongst widget children

* Enforce unique widget IDs amongst widgets mounted together

* Update CHANGELOG.md

* Ensuring unique IDs in a more logical place

* Add docstring to NodeList._get_by_id

* Dont use duplicate IDs in tests, dont mount 2000 widgets

* Mounting less widgets in a unit test

* Reword error message

* Use lower-level depth first search in get_widget_by_id to break out early
2022-11-16 15:29:59 +00:00
Dave Pearson
5d6daf2a00 Extend the on_unmount unit tests
Because some changes are going to be made to the way that removal of widgets
happens, and because this will affect the linkage between parents and
children, and because we don't want the current way of working to change...
extend to the tests to be sure that when an unmount happens a widget has no
children any more, but still knows about its parent.
2022-11-09 14:59:13 +00:00
Will McGugan
881a9c2752 Merge pull request #1061 from Textualize/horizontal-fix
allow waiting of screen operations
2022-10-31 13:36:46 +00:00
Will McGugan
07dced3435 Update tests/test_unmount.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2022-10-31 13:31:10 +00:00
Will McGugan
170be7eb2a allow waiting of screen operations 2022-10-30 15:24:48 +00:00
Will McGugan
cfd5d532dd test for unmount 2022-10-30 08:43:23 +00:00