Commit Graph

440 Commits

Author SHA1 Message Date
Darren Burns
c6418e5e20 Snapshot testing data table, checkbox interactions 2022-10-24 12:14:52 +01:00
Darren Burns
8a92cc470b Merge branch 'main' of github.com:Textualize/textual into more-testing 2022-10-24 11:16:56 +01:00
Will McGugan
67bd979389 remove property 2022-10-22 17:35:11 +01:00
Darren Burns
e35291da33 Fix snapshots 2022-10-20 15:27:10 +01:00
Darren Burns
5d4ff6614f Snapshotting canonical style property examples 2022-10-20 15:26:01 +01:00
darrenburns
4a0dc49bca Checkbox polishing + fix auto-width in Horizontal layout (#942)
* checkbox widget

* fixes

* Checkbox additions, fix content width in horizontal layout

* Update docs, add tests for checkbox

* Remove some test code

* Small renaming of test class

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-10-18 15:17:44 +01:00
Darren Burns
fc3d1be583 Update snapshots - terminal titles have updated 2022-10-17 12:26:16 +01:00
Will McGugan
7eb5119fe0 real breadth first, and tests 2022-10-13 20:51:03 +01:00
Will McGugan
5a8e492294 depth first search 2022-10-13 16:43:59 +01:00
Darren Burns
7bce50476c Merge branch 'css' of github.com:Textualize/textual into remove-unused-code 2022-10-13 11:26:48 +01:00
Darren Burns
1b0c94e8a0 Remove draw.py, fix imports 2022-10-13 11:15:15 +01:00
darrenburns
36ac94734f Move focus logic to screen, add more key replacements, collapse bindings in footer (#880)
* Move focusing logic to the Screen level

* Update tests to support per-screen focus management

* Some additional key name replacements

* Improve rendering of bindings in footer when multiple items have same action

* Clean up footer, allow key_displays csv

* Prevent exception when widget is not in screen
2022-10-13 10:43:16 +01:00
Will McGugan
49c6530955 Merge pull request #852 from Textualize/key-aliases
Support for key aliases, key handling tests
2022-10-11 15:39:01 +01:00
Will McGugan
7bca184192 tweak for colors 2022-10-11 10:04:38 +01:00
Darren Burns
bd3a723d86 Move aliasing/normalisation logic into Key 2022-10-10 10:46:33 +01:00
Will McGugan
9c7a48fc13 words 2022-10-09 16:11:16 +01:00
Will McGugan
e2ea2cf7ef Merge pull request #854 from Textualize/styles-css-property-fixes-updates
Fix issues with `Styles.css`, update "Grid" styles doc page
2022-10-08 16:02:12 +01:00
Will McGugan
b77a26797a monochrome tests 2022-10-08 15:46:30 +01:00
Will McGugan
81bd68a29c test fix 2022-10-08 09:51:21 +01:00
Will McGugan
47abfe29c7 Test fix, query typing 2022-10-07 22:10:22 +01:00
Darren Burns
72dff52212 Unit test for Styles.css 2022-10-07 14:38:02 +01:00
Darren Burns
17bc375e08 Support for key aliases, key handling tests 2022-10-07 11:30:08 +01:00
darrenburns
54bdb4bac0 Fix comma separated string in "Bindings" (#797) 2022-10-04 18:37:06 +01:00
Will McGugan
fdc549a66c fix test 2022-10-04 10:15:09 +01:00
Will McGugan
8589b90d92 test fix 2022-10-03 17:17:47 +01:00
Will McGugan
d962dcd49c new align 2022-09-27 16:35:40 +01:00
Will McGugan
3f0955cbe5 fix tests 2022-09-26 09:51:33 +01:00
Will McGugan
3d011f5b92 color inverse test 2022-09-24 09:23:49 +01:00
Will McGugan
a4ec843c05 update snapshot 2022-09-23 13:30:21 +01:00
Darren Burns
0c0f5cd384 Tidying up 2022-09-22 14:32:25 +01:00
Darren Burns
9e2500aeca Quick internal guide to snapshot testing 2022-09-22 14:15:52 +01:00
Darren Burns
cc352faf63 Formatting 2022-09-22 13:56:20 +01:00
Darren Burns
ee0eed9bcb Remove some unused CSS in snapshot report 2022-09-22 13:49:17 +01:00
Darren Burns
b5540caa33 Add toggle for overlay mode 2022-09-22 13:48:17 +01:00
Darren Burns
8db7a07eef Force legacy_windows to False in Textual 2022-09-21 15:35:16 +01:00
Darren Burns
04a513ff9f Add debug info 2022-09-21 15:18:53 +01:00
Darren Burns
644922c829 Write snapshot file as utf-8 2022-09-21 11:45:16 +01:00
Darren Burns
1a658955da Reenable artifacts on windows 2022-09-21 11:37:16 +01:00
Darren Burns
93fab617bf Merge branch 'css' of github.com:willmcgugan/textual into snapshot 2022-09-20 17:39:05 +01:00
Darren Burns
6a63ffbff9 Make output dir if not exists 2022-09-20 17:34:50 +01:00
Darren Burns
56b7ec70b8 Change write mode 2022-09-20 17:12:52 +01:00
Darren Burns
26fb89005c Skip artifact creation/upload on Windows 2022-09-20 16:44:18 +01:00
Will McGugan
216d05b17f test fix 2022-09-20 16:33:07 +01:00
Darren Burns
7e72cf1d28 Update snapshots 2022-09-20 15:46:43 +01:00
Darren Burns
c54c844695 Update usages of approx 2022-09-20 15:42:29 +01:00
Darren Burns
0ce222d259 Remove redundant info from docstring 2022-09-20 15:34:15 +01:00
Darren Burns
2bed87f2ee Run black on snapshot_tests/conftest 2022-09-20 15:31:48 +01:00
Darren Burns
29da6badfd Use type hints and add docstring to snap_compare 2022-09-20 15:29:42 +01:00
Darren Burns
0978eb5161 Remove snapshot_report from git 2022-09-20 15:24:24 +01:00
Darren Burns
863998173d Remove unused pytest hookimpl 2022-09-20 15:20:34 +01:00