Commit Graph

1190 Commits

Author SHA1 Message Date
Dave Pearson
938a3b4ed5 Add a test for going left a word from home
This should result in a NOP.
2023-01-29 11:20:44 +00:00
Will McGugan
b4a3c2e8bb fix for render width 2023-01-28 17:23:52 +01:00
Dave Pearson
7ddf4bbecc Add some initial Input key/action unit tests
This is just getting a feel for how I'll go about testing these. The main
focus here won't be on the bindings themselves -- they're not really
interesting and I feel could change over time anyway as people's tastes
settle down. What I want to test here are the actions that get bound.

This is just an initial small set of what's going to be a much bigger
collection of Input action tests.
2023-01-27 18:42:38 +00:00
Dave Pearson
f4b29d8b99 Move the current Input tests into a subdirectory
I'm going to be adding more tests for Input, and I don't want to be doing
one large monolithic file of them, so this makes a space where
Input-targeting tests can live together and be easy to spot.
2023-01-27 18:41:13 +00:00
Dave Pearson
cbe62fadc3 Add unit tests for all the expand/collapse/toggle Tree methods 2023-01-27 13:28:25 +00:00
Will McGugan
36188ae0dc Merge pull request #1659 from Textualize/fix-1372
Keep track of scheduled animations
2023-01-27 10:10:26 +01:00
Rodrigo Girão Serrão
c4dbde1994 Don't force layout on overflow change.
Fix: #1628.
2023-01-26 16:18:09 +00:00
Rodrigo Girão Serrão
c2f99dfdaa Merge branch 'main' into fix-1607 2023-01-26 16:07:58 +00:00
Will McGugan
3eac79568c remove some pauses 2023-01-26 16:10:13 +01:00
Will McGugan
41be84b1a5 docstring 2023-01-26 16:01:48 +01:00
Darren Burns
aee100ff10 Removing redundant data from DataTable.Row 2023-01-26 14:05:31 +00:00
Darren Burns
297119d9b6 Merge branch 'main' of github.com:Textualize/textual into datatable-cell-keys 2023-01-26 14:02:09 +00:00
Darren Burns
9d2ddfa86e Remove DataTable Row.index 2023-01-26 13:56:40 +00:00
Darren Burns
b0b0531ad7 Update snapshots 2023-01-25 13:54:16 +00:00
Rodrigo Girão Serrão
11f470b59b Ensure animation scheduling order. 2023-01-25 13:40:57 +00:00
Will McGugan
6edfc82513 Merge pull request #1653 from Textualize/self-remove
Rhymes with "Bed rock"
2023-01-25 14:18:33 +01:00
Will McGugan
d058477e22 Merge branch 'main' into fix-1372 2023-01-25 12:06:18 +01:00
Will McGugan
aba2633f44 Update tests/test_widget.py
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com>
2023-01-25 12:00:51 +01:00
Will McGugan
a61e61f17b Merge pull request #1637 from davep/widget-importing
Support easier widget "support classes" importing
2023-01-25 11:53:32 +01:00
Will McGugan
b9b53b8677 Merge branch 'main' into fix-1616 2023-01-25 11:52:29 +01:00
Rodrigo Girão Serrão
fa6bd44866 Housekeeping. 2023-01-24 18:46:37 +00:00
Rodrigo Girão Serrão
c8ff5bd14b Add tests. 2023-01-24 18:30:24 +00:00
Darren Burns
3b1f869300 Update tests to support keyed rows 2023-01-24 16:00:53 +00:00
Will McGugan
3673b0ff48 keep reference to remove task 2023-01-24 16:01:37 +01:00
Will McGugan
d9dd1dcbe8 simplify 2023-01-24 15:53:53 +01:00
Will McGugan
f97392ac8b added test 2023-01-24 15:24:55 +01:00
Darren Burns
a958c66671 Keys for columns in the DataTable 2023-01-24 14:17:29 +00:00
Darren Burns
2d498d516d Remove pauses from DataTable tests 2023-01-24 13:04:49 +00:00
Darren Burns
b5e5a66e32 Some additional tests around row/col keys in DataTable 2023-01-24 12:52:31 +00:00
Darren Burns
9d8cf18bf1 Merge branch 'main' of github.com:willmcgugan/textual into datatable-cell-keys 2023-01-24 12:47:52 +00:00
Darren Burns
0eb38e79da Add test for adding columns to data table 2023-01-24 12:47:43 +00:00
Darren Burns
2725074194 Sorting imports in tests for DataTable 2023-01-24 11:43:13 +00:00
Darren Burns
6ea3380e8f Increase a pause in a Tree test 2023-01-24 11:36:24 +00:00
Darren Burns
a4db3426b8 Rename a DataTable test 2023-01-24 11:35:30 +00:00
Darren Burns
12d429dbd0 Replace DataTable row_count with property, test improvements 2023-01-24 11:33:35 +00:00
Darren Burns
d1413ee352 Updating test to ensure row_key mapped data is correct 2023-01-24 10:38:47 +00:00
Rodrigo Girão Serrão
034d1f8940 Merge branch 'main' into fix-1607 2023-01-23 18:37:16 +00:00
Rodrigo Girão Serrão
5c73387bca Pause before rendering input widget. 2023-01-23 18:13:27 +00:00
Rodrigo Girão Serrão
3d0b607798 Merge branch 'main' into fix-1616 2023-01-23 18:03:27 +00:00
Rodrigo Girão Serrão
cb73dd4ba9 Remove xfail marker. 2023-01-23 18:00:44 +00:00
Dave Pearson
3212fbc3b7 Merge branch 'main' into widget-importing 2023-01-23 17:44:38 +00:00
Dave Pearson
4adfe69ec9 Remove TreeNode as a pseudo-widget
This encourages importing it from `textual.widgets.tree` instead, keeping it
in line with the other changes made for #1637.

Note this is a breaking change.
2023-01-23 17:37:58 +00:00
Rodrigo Girão Serrão
2deb96c3ed Merge branch 'main' into fix-1607 2023-01-23 17:32:02 +00:00
Will McGugan
068345076b Merge branch 'main' into stuck-screen 2023-01-23 17:28:17 +01:00
Darren Burns
f338381b73 Testing around row key generation, add_rows etc 2023-01-23 15:47:25 +00:00
Darren Burns
5b14f8996d Rows are internally tracked using RowKey in DataTable 2023-01-23 15:37:38 +00:00
Rodrigo Girão Serrão
e7f76bf85a Add regression tests. 2023-01-23 15:04:36 +00:00
Will McGugan
2b3d966410 moar pauses 2023-01-23 12:31:18 +01:00
Will McGugan
81d086e8d7 fix snapshot test 2023-01-23 12:11:05 +01:00
Darren Burns
2b7c569811 Testing two-way mapping 2023-01-23 10:06:17 +00:00