Rodrigo Girão Serrão
12f272d507
Fix tests.
...
I misread the original app hierarchy and was trying to focus something that can't be focused.
2023-01-17 14:56:35 +00:00
Darren Burns
e1de10d21a
Pause after input test
2023-01-17 14:26:16 +00:00
Darren Burns
36bf162847
Snapshot tests for column and row cursors in DataTable
2023-01-17 14:17:25 +00:00
Rodrigo Girão Serrão
56f339db20
Add failing tests.
2023-01-17 12:26:03 +00:00
Rodrigo Girão Serrão
2b9cd81ca5
Cleanup and new test.
2023-01-17 10:29:19 +00:00
Darren Burns
b4f2da025a
Add pause after datatable snapshot test
2023-01-16 16:40:01 +00:00
Darren Burns
92ccf84496
Some updates to test_reactive
2023-01-16 11:06:13 +00:00
Darren Burns
fa1f33ff64
Remove a sleep that is no longer required in reactive test
2023-01-16 11:02:38 +00:00
Darren Burns
65223be8be
Merge branch 'main' of github.com:Textualize/textual into datatable-events
2023-01-16 11:00:10 +00:00
Darren Burns
62c05f7fbc
Update datatable snapshot - hover cursor no longer shown
2023-01-16 10:01:02 +00:00
Will McGugan
974a0b8020
Merge branch 'main' into fix-1399
2023-01-15 02:43:41 -08:00
Will McGugan
2468a8ca83
Merge pull request #1555 from Textualize/rodrigogiraoserrao-patch-1
...
Fix tests: await all mounts before checking rendered values
2023-01-15 02:30:41 -08:00
Will McGugan
6063b0c9b2
remove comment [skip ci]
2023-01-13 21:17:19 +00:00
Will McGugan
6af2b61fc7
watching computed
2023-01-13 20:56:33 +00:00
Will McGugan
c3129c8331
fix inheritance
2023-01-13 17:22:52 +00:00
Rodrigo Girão Serrão
7e428e2f4c
fix tests: await all mounts.
2023-01-13 10:58:57 +00:00
Will McGugan
8f0f0d8c12
refactor
2023-01-13 10:44:13 +00:00
Will McGugan
027635b978
merge
2023-01-12 17:45:36 +00:00
Rodrigo Girão Serrão
feb8591e72
Fix test: await widget mount before focusing
...
Follow-up to #1548
2023-01-12 16:11:36 +00:00
Rodrigo Girão Serrão
510df0c375
Merge branch 'main' into fix-1399
2023-01-12 15:50:06 +00:00
Rodrigo Girão Serrão
a3e54323d9
Make methods private.
2023-01-12 15:48:49 +00:00
Rodrigo Girão Serrão
ab0d9d569e
Merge pull request #1548 from Textualize/fix-1477
...
Improve `Input` view position calculation
2023-01-12 15:13:03 +00:00
Rodrigo Girão Serrão
dd478dd249
Make list_view snapshot test pass more reliably
2023-01-12 15:00:56 +00:00
Rodrigo Girão Serrão
dc318b8c93
Update tests.
2023-01-12 14:39:05 +00:00
Rodrigo Girão Serrão
c2f289e472
Add failing test.
2023-01-12 10:58:14 +00:00
Rodrigo Girão Serrão
0bc10f0ec4
Add regression tests.
2023-01-11 19:15:10 +00:00
Rodrigo Girão Serrão
d966665345
Address review comments.
2023-01-11 16:05:44 +00:00
Rodrigo Girão Serrão
f5d8de4194
Add test for COMPONENT_CLASSES inheritance.
2023-01-11 15:09:14 +00:00
Dave Pearson
d0ea967aa4
Merge branch 'get-treenode-by-id' of github.com:davep/textual into get-treenode-by-id
2023-01-10 15:30:12 +00:00
Dave Pearson
494c63a72b
Tweak the unknown node ID exception
...
See https://github.com/Textualize/textual/pull/1535#discussion_r1065904713
and https://github.com/Textualize/textual/pull/1535#discussion_r1065909144
2023-01-10 15:28:17 +00:00
Dave Pearson
c027a06ee2
Merge branch 'main' into get-treenode-by-id
2023-01-10 14:59:36 +00:00
Dave Pearson
728acc27c0
Introduce an exception specific to handling an unknown node ID
...
See https://github.com/Textualize/textual/pull/1535#discussion_r1065873649
2023-01-10 14:57:35 +00:00
Dave Pearson
4c75d1cb48
Merge pull request #1528 from davep/tree-node-highlighted-message
...
Add `Tree.NodeHighlighted` message
2023-01-10 14:44:03 +00:00
Rodrigo Girão Serrão
0f3aff6fb1
Merge pull request #1408 from Textualize/review-styles-reference
...
Review styles reference
2023-01-10 14:20:11 +00:00
Dave Pearson
6ea68cc112
Add Tree.get_node_by_id
...
The thinking here is that a user of a Tree may want to relate notes to other
parts of their UI, or other data in their application. While this could be
done by keeping a reference to the node itself, it could also be beneficial
to just track the ID. Given that ID is a public property of a TreeNode, but
given it doesn't currently have any other (public) purpose, this seems to
add some useful symmetry.
2023-01-10 10:42:07 +00:00
Rodrigo Girão Serrão
d9a0c343d7
Update snapshot tests.
2023-01-09 16:42:15 +00:00
Rodrigo Girão Serrão
e5375d0a2f
Reset color cycle before tests.
...
We need to reset the color cycle for placeholders before each CSS property test because we need to ensure consistent colouring of the placeholders as tests are added/removed/reordered.
2023-01-09 16:26:33 +00:00
Rodrigo Girão Serrão
5cad93220e
Merge branch 'main' into review-styles-reference
2023-01-09 16:19:24 +00:00
Dave Pearson
5a09831c5e
Run black over path tests
2023-01-09 14:00:52 +00:00
Dave Pearson
c84a5dc413
Run black over widget removing tests
2023-01-09 13:59:59 +00:00
Dave Pearson
3f6ec10311
Run black over widget mounting tests
2023-01-09 13:59:15 +00:00
Dave Pearson
8872956b29
Run black over arrange tests
2023-01-09 13:58:25 +00:00
Dave Pearson
afc7ba2a37
Run black over unmount tests
2023-01-09 13:57:49 +00:00
Dave Pearson
5df5f12906
Run black over node tests
2023-01-09 13:57:13 +00:00
Dave Pearson
06ab4f4d70
Run black over child focus tests
2023-01-09 13:56:35 +00:00
Dave Pearson
04ef895626
Run black over child widget moving tests
2023-01-09 13:55:53 +00:00
Dave Pearson
489ba10c8a
Sprinkle some pauses into the node message tests
2023-01-09 13:36:29 +00:00
Dave Pearson
346659f47f
Move typing of the tree into its own class
2023-01-09 13:28:25 +00:00
Dave Pearson
c00a6da90d
Check if I need to import from the future for Python 3.8
2023-01-09 13:13:54 +00:00
Dave Pearson
151673cd53
Remove empty docstring
2023-01-09 13:12:57 +00:00