Commit Graph

57 Commits

Author SHA1 Message Date
darrenburns
bbd811d671 Support multiple CSS files (#1079)
* Support multiple CSS paths

* Update a type to match docstring

* Ensure the demo app still works

* Use absolute paths in tests to (hopefully) appease Windows

* Notes about CSS changes in guide/docstrings, small grammar/typos fixes

* Move snapshot apps into snapshot_tests dir, improve messaging in snapshot output, add test for multiple css files interacting with classvar CSS

* Ensure consistent snapshot naming cross-platform

* Use rpartition instead of partition in import_app

* Fix handling of import_app when colon in arg

* Support paths containing Windows drive names in import_app

* Add note on new relative paths in snap_compare

* Update docs/guide/CSS.md

Co-authored-by: Will McGugan <willmcgugan@gmail.com>

* Fix formatting

* Update CHANGELOG to mention CSS_PATH supporting a list

Co-authored-by: Will McGugan <willmcgugan@gmail.com>
2022-11-01 17:13:25 +00:00
Will McGugan
67fcbde8cd Merge branch 'main' into footer-fix 2022-10-31 14:46:59 +00:00
Will McGugan
d37c5ed3da test fix for windows 2022-10-31 13:53:45 +00:00
Will McGugan
41e2b71dcc update changelog 2022-10-31 13:46:28 +00:00
Will McGugan
586ff470c5 Merge branch 'main' into fix-texlog-maxlines 2022-10-31 13:38:55 +00:00
Will McGugan
0d99b0ccd1 Merge pull request #1067 from Textualize/fr-unit
Fr unit
2022-10-31 13:37:00 +00:00
Will McGugan
5cb5dd8599 Merge branch 'main' into unmount 2022-10-31 13:30:58 +00:00
Will McGugan
9b9d58f716 fix issue with maxlines and textlog 2022-10-31 11:03:34 +00:00
Will McGugan
0a02324309 renamed test 2022-10-31 10:18:09 +00:00
Will McGugan
4524e6dd30 Refactor of fr units 2022-10-31 10:09:08 +00:00
Dave Pearson
6bdeba894c Update header-related snapshot
The underlying snapshot is different in content, but not in effect, which is
by design. See #1060.
2022-10-31 10:00:45 +00:00
Will McGugan
c5b2e6982e pass size as a parameter 2022-10-29 21:09:16 +01:00
Will McGugan
2afb00f5b3 test fix 2022-10-29 11:44:31 +01:00
Will McGugan
ac3d756e51 unmount event 2022-10-27 17:43:02 +01:00
Darren Burns
6be7895ecb Check some more widget state 2022-10-25 13:15:31 +01:00
Darren Burns
66d15d2a9e Remove unused snapshot 2022-10-25 12:11:15 +01:00
Darren Burns
1b19450779 Ensure consistent path in snapshot tests 2022-10-25 12:08:08 +01:00
Darren Burns
617f0acb99 Additional sleep after tabbing to guard vs races 2022-10-25 10:57:54 +01:00
Darren Burns
d02e6e94b0 Fix data-table snapshot 2022-10-24 15:16:47 +01:00
Darren Burns
041bb35014 Remove comments, simplify test 2022-10-24 14:51:40 +01:00
Darren Burns
9632e76159 Snapshotting Header widgets 2022-10-24 12:42:32 +01:00
Darren Burns
f09e5f7d9f Snapshot testing footer 2022-10-24 12:39:33 +01:00
Darren Burns
c6418e5e20 Snapshot testing data table, checkbox interactions 2022-10-24 12:14:52 +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
47abfe29c7 Test fix, query typing 2022-10-07 22:10:22 +01:00
Will McGugan
d962dcd49c new align 2022-09-27 16:35:40 +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
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
Darren Burns
7e72cf1d28 Update snapshots 2022-09-20 15:46:43 +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
Darren Burns
cdd2c01a75 Fix type imports from pytest 2022-09-20 15:19:56 +01:00
Darren Burns
4a4eeb503a Most different snapshots first 2022-09-20 15:14:23 +01:00