Dave Pearson
b0d2caf221
Add unit tests for mounting relative to -2
...
To satisfy https://github.com/Textualize/textual/pull/1095#discussion_r1013041338
2022-11-03 15:49:15 +00:00
Dave Pearson
82674ad181
Merge branch 'Textualize:main' into mount-relative
2022-11-03 15:23:09 +00:00
Dave Pearson
abad0a311a
Make NodeList._index "public"
...
See https://github.com/Textualize/textual/pull/1095#discussion_r1011988160
2022-11-02 16:10:34 +00:00
Dave Pearson
f29015f70a
Add a reminder to the mount tests about query_one
...
See https://github.com/Textualize/textual/issues/1096
2022-11-02 15:57:09 +00:00
Dave Pearson
b925fb6b19
Start unit tests for mounting
2022-11-02 15:18:49 +00:00
Dave Pearson
2df0144902
Remove the old _find_dom_spot tests
...
This set of tests got left over from the great renaming.
2022-11-02 11:39:58 +00:00
Dave Pearson
627486a42a
Lots of reworking of the mount-before/after work
...
Lots of things going on here, mainly narrowing in on the final form.
2022-11-02 11:35:22 +00:00
Dave Pearson
016f7be83a
Add an insert method to the NodeList
2022-11-01 22:26:38 +00:00
Dave Pearson
e35d146445
Tidy up and extend the DOM spot tests
2022-11-01 21:33:25 +00:00
darrenburns
5e64a9fb90
Introduce _typing module for version-dependent typing imports ( #1088 )
...
* Introduce _typing module for version-dependent typing imports
* Remove unused import
2022-11-01 17:13:42 +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
Dave Pearson
39b23e1f51
WIP: Starting work on adding before/after mount directions
...
This is still a work-in-progress, but this feels like a good point to commit
for safe keeping. This is a non-working WIP.
2022-11-01 17:01:56 +00:00
Dave Pearson
cee69fbc32
Add an _index method to NodeList
...
This maps on to a normal List.index.
2022-11-01 10:55:15 +00:00
Dave Pearson
294166cfec
Add unit tests for the NodeList class
2022-11-01 09:58:32 +00:00
Dave Pearson
457340777b
Change DOM queries to be case-sensitive for classes and IDs
...
See #1041 and #1047 .
2022-10-31 15:25:22 +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
881a9c2752
Merge pull request #1061 from Textualize/horizontal-fix
...
allow waiting of screen operations
2022-10-31 13:36:46 +00:00
Will McGugan
07dced3435
Update tests/test_unmount.py
...
Co-authored-by: darrenburns <darrenburns@users.noreply.github.com >
2022-10-31 13:31:10 +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
170be7eb2a
allow waiting of screen operations
2022-10-30 15:24:48 +00:00
Will McGugan
cfd5d532dd
test for unmount
2022-10-30 08:43:23 +00:00
Will McGugan
c5b2e6982e
pass size as a parameter
2022-10-29 21:09:16 +01:00
Will McGugan
1ba349b02c
Merge pull request #1008 from davep/query-tests
...
Extend unit tests for CSS query
2022-10-29 20:05:34 +01:00
Will McGugan
12c553d195
shutdown scrollbas
2022-10-29 13:29:32 +01:00
Will McGugan
2afb00f5b3
test fix
2022-10-29 11:44:31 +01:00
Will McGugan
269ff4883e
test fix
2022-10-29 10:03:26 +01:00
Will McGugan
ac3d756e51
unmount event
2022-10-27 17:43:02 +01:00
Will McGugan
93e75f3f0e
Merge pull request #969 from Textualize/more-testing
...
More testing
2022-10-25 14:15:43 +01:00
Dave Pearson
0e3090352c
Merge branch 'main' into query-tests
2022-10-25 14:14:03 +01:00
Dave Pearson
22d53c827e
Add tests for doing class work via a query
2022-10-25 14:03:43 +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
Dave Pearson
f217310b60
Add a test for a query result with no filter
2022-10-25 11:38:34 +01:00
Dave Pearson
6fcd93bd2a
Add tests for a query exclusion
2022-10-25 11:34:58 +01:00
Will McGugan
8603e567a2
Merge pull request #998 from davep/extend-test-coverage
...
Add and extend unit tests
2022-10-25 11:32:25 +01:00
Dave Pearson
661fabb62c
Add tests for a query filtering
2022-10-25 11:26:09 +01:00
Darren Burns
617f0acb99
Additional sleep after tabbing to guard vs races
2022-10-25 10:57:54 +01:00
Dave Pearson
0019f26617
Add tests for a query __getitem__
2022-10-25 10:50:02 +01:00
Dave Pearson
e68a07d228
Add tests for reversing a query
2022-10-25 10:31:11 +01:00
Dave Pearson
aa9f53fa5b
Add testing for the __bool__ method of a query
2022-10-25 10:29:10 +01:00
Dave Pearson
bd55830d53
Add query tests relating to first/last
2022-10-25 10:24:40 +01:00