Darren Burns
0721d7fc87
Snapshot test for sorting
2023-02-08 10:39:04 +00:00
Darren Burns
dca164d70f
Update snapshots for datatable_render test
2023-02-08 09:54:33 +00:00
Darren Burns
6de6ed769e
Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys
2023-02-07 13:40:51 +00:00
Darren Burns
3cf010ebe7
Testing to ensure the hover coordinate is updated
2023-02-07 11:23:02 +00:00
Darren Burns
0afcc8cd47
Add comment to a test
2023-02-07 11:09:51 +00:00
Darren Burns
3e451e8416
Testing that data inside DataTable events correct on click
2023-02-07 11:09:21 +00:00
Will McGugan
38140c564b
imports
2023-02-07 10:54:29 +00:00
Darren Burns
76d2ff2999
Testing clicks in DataTable
2023-02-07 10:49:01 +00:00
Will McGugan
5930ebf82e
remove _typing.py
2023-02-07 10:46:28 +00:00
Darren Burns
38b361b47f
Merge branch 'datatable-cell-keys' of github.com:willmcgugan/textual into datatable-cell-keys
2023-02-06 12:47:38 +00:00
Darren Burns
c9ccbce41b
Merge branch 'main' of github.com:willmcgugan/textual into datatable-cell-keys
2023-02-06 12:46:07 +00:00
Will McGugan
fb7fd14262
Merge pull request #1710 from Textualize/line-api-docs
...
Documented the Line API
2023-02-06 11:42:57 +00:00
Will McGugan
8540900d3b
add test for extend_cell_length
2023-02-04 17:16:00 +01:00
Will McGugan
59def1a591
test fix
2023-02-04 16:10:33 +01:00
Will McGugan
de2a4fd78d
test fixes
2023-02-04 15:53:00 +01:00
Darren Burns
998ee9b8a2
Test to ensure correct exception raised when converting to cell key from coordinate in DataTable
2023-02-02 15:44:25 +00:00
Darren Burns
62fb9d58bd
Testing conversion of coordinate to cell_key
2023-02-02 15:40:24 +00:00
Darren Burns
87808c63b2
Tidying some tests
2023-02-02 15:29:26 +00:00
Darren Burns
134ceffd11
Testing to ensure column size calculated correctly
2023-02-02 14:20:33 +00:00
Darren Burns
7748b69e95
Initial unit tests around column width updates
2023-02-02 14:12:14 +00:00
Darren Burns
990a6311bc
Extract common coordinate validation logic into method in DataTable
2023-02-02 13:09:11 +00:00
Darren Burns
77b94b005c
Testing case where you try to update cells which dont exist
2023-02-01 17:34:03 +00:00
Darren Burns
23a34030cd
Measuring string cells correctly
2023-02-01 17:10:59 +00:00
Darren Burns
fd4e13c988
Add tests for DataTable.get_cell_value
2023-02-01 15:43:36 +00:00
Dave Pearson
d350374e59
Revert Tree.clear and add Tree.reset
...
After some internal discussion we've decided to keep `Tree.clear` as it was,
and add a `Tree.reset`, which does a `Tree.clear` but resets the label and
data of `Tree.root` to the values given, while mirroring how `Tree.__init__`
takes those parameters.
2023-02-01 15:08:03 +00:00
Darren Burns
79b08aa6b5
Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys
2023-02-01 14:55:14 +00:00
Darren Burns
3f463cb0ef
Store strings as strings
2023-02-01 14:54:33 +00:00
Dave Pearson
78f49f0ab2
Allow replacement of the root node data when clearing the tree
2023-02-01 13:44:53 +00:00
Dave Pearson
ff7f2488f8
Remove Tree class name clash with how pytest works
...
Just before doing the commit I decided to rename the test tree in the new
unit test for clearing down a tree. Of course I managed to name it in such a
way that it becomes special to pytest.
This fixes that.
2023-02-01 12:45:18 +00:00
Dave Pearson
7563d4cb7e
Allow setting a new label when performing a clear on a Tree
...
See #1437 for background. While it would be ideal to allow for the complete
emptying of a Tree, the root node is required (and it's part of the
construction of a Tree). So, here, when clearing the Tree we optionally
allow for a new label to be given.
Ideally we'll also allow for fresh data to be provided too; but there's a
wrinkle there in knowing the difference between the data being None, and no
data being provided (so the current root's data being carried over).
Following the method of defaulting used in __init__ would cause problems. As
such, rather than roll all of this into one commit, this goes with the basic
requirement and the solution for data will follow.
Note this also starts some unit tests for the clearing of a Tree.
2023-02-01 12:33:36 +00:00
Dave Pearson
6f24331564
Merge pull request #1703 from davep/lowkey-tree-selection
...
Lowkey tree selection
2023-01-31 16:27:15 +00:00
Dave Pearson
b0a29050cf
Update snapshots after change of unfocused tree cursor handling
2023-01-31 16:20:41 +00:00
Rodrigo Girão Serrão
40fde8cfb9
Merge pull request #1610 from Textualize/fix-1607
...
Fix #1607 to allow programmatic style changes
2023-01-31 15:13:24 +00:00
Dave Pearson
ff76157479
Merge pull request #1700 from davep/tree-select-expand-divorce
...
Enhance `Tree` so that there is a expand/collapse action that is separate from select
2023-01-31 14:33:43 +00:00
Will McGugan
fc22576691
Merge pull request #1699 from Textualize/auto-width-inputs
...
Auto width inputs
2023-01-31 14:46:03 +01:00
Darren Burns
0ad26c3361
Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys
2023-01-31 13:37:41 +00:00
Darren Burns
abd35436fb
Some refactoring, and add cell_key to DataTable.CellSelected
2023-01-31 13:34:13 +00:00
Dave Pearson
6db5217f3e
Modify Tree message unit tests to take new action in to account
...
See #1433 .
2023-01-31 13:32:46 +00:00
Will McGugan
e446695684
snapshot fix
2023-01-31 12:53:32 +01:00
Will McGugan
330db5fc80
snapshot
2023-01-31 12:43:07 +01:00
Dave Pearson
f1f3e20148
Merge pull request #1694 from davep/input-wordless-passwords
...
When in password mode have word-oriented actions act on whole input
2023-01-31 11:20:57 +00:00
Will McGugan
be5a67e903
fix auto width glitch
2023-01-31 12:13:25 +01:00
darrenburns
3aeadf2d37
Merge branch 'main' into datatable-cell-keys
2023-01-31 10:32:53 +00:00
Will McGugan
dc02b22d7c
Fix paste and test
2023-01-31 11:12:47 +01:00
Dave Pearson
928a289c0e
Add extra unit tests for password field deletion
...
Here we're just testing the exceptional situations.
2023-01-30 20:38:19 +00:00
Dave Pearson
5fc16c6af0
Add extra unit tests for password field movement
...
Here we're just testing the exceptional situations.
2023-01-30 20:34:22 +00:00
Will McGugan
891e8d95a1
Merge pull request #1695 from Textualize/rodrigogiraoserrao-patch-1
...
Update test_animation.py
2023-01-30 19:04:41 +01:00
Will McGugan
71a0a6676f
docstring [skip ci]
2023-01-30 19:02:35 +01:00
Will McGugan
4aa988347f
add tests
2023-01-30 18:59:23 +01:00
Rodrigo Girão Serrão
1fc2c2951c
Update test_animation.py
...
Make it less likely for test to fail.
References: #1675
2023-01-30 17:24:15 +00:00