Commit Graph

29 Commits

Author SHA1 Message Date
Will McGugan
6c5ba82bff fix for win 2022-12-21 15:43:43 +00:00
Will McGugan
bb7fd40d73 force console on terminal summary 2022-12-19 13:26:47 +00:00
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
41e2b71dcc update changelog 2022-10-31 13:46:28 +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
Darren Burns
041bb35014 Remove comments, simplify test 2022-10-24 14:51:40 +01:00
Darren Burns
0c0f5cd384 Tidying up 2022-09-22 14:32:25 +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
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
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
Darren Burns
8f64e36caa Small tidy up 2022-09-20 15:13:37 +01:00
Darren Burns
c82a143f0e Snapshot tests output directory ignored 2022-09-20 15:11:19 +01:00
Darren Burns
a871e272b7 Update pre-commit-config to exclude snapshot tests 2022-09-20 14:58:32 +01:00
Darren Burns
c9cdb9746b Fix off by one 2022-09-20 14:49:00 +01:00
Darren Burns
0cd5c0a298 Merge branch 'css' of github.com:willmcgugan/textual into snapshot 2022-09-20 14:46:37 +01:00
Darren Burns
13b27e1fa3 Updates 2022-09-20 13:48:35 +01:00
Darren Burns
d619dae510 Snapshot testing progress 2022-09-16 16:28:48 +01:00