Commit Graph

3089 Commits

Author SHA1 Message Date
Dave Pearson
0f2bb61fe8 Change the default screenshot time format
As per this suggestion:

  https://github.com/Textualize/textual/pull/995#issuecomment-1290331867

the default time format changes to one with no problematic characters within
it. For the moment at least I'm going to keep the stripping of reserved
characters as the user of the code could still pass in problematic format
strings.

See #993.
2022-10-25 20:49:01 +01:00
UriyaHarpeness
98fdb9d1a1 Fix some inaccuracies in the tutorial. 2022-10-25 19:32:14 +03:00
Darren Burns
5933cbb7e8 Revert build action to 3.11-rc.2 until Darwin build ready 2022-10-25 15:38:54 +01:00
Darren Burns
7599accccf Fix GitHub action install-poetry version 2022-10-25 15:36:22 +01:00
Darren Burns
e99beb9dda Remove debug print 2022-10-25 15:34:04 +01:00
Darren Burns
91b2e03d65 Add Python 3.11 to CI, update install-poetry action 2022-10-25 15:32:50 +01:00
Darren Burns
b6e19d5c30 Add note to docs about always_update 2022-10-25 14:39:39 +01:00
Darren Burns
5156b3bc70 Always update flag for reactives 2022-10-25 14:29:43 +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
Will McGugan
93ccf7069f Merge pull request #988 from teschty/tutorial-highlight
Add highlighting for id="timers" line in tutorial
2022-10-25 14:13:28 +01:00
Dave Pearson
22d53c827e Add tests for doing class work via a query 2022-10-25 14:03:43 +01:00
Will McGugan
842148d40f Merge pull request #1007 from davep/5x5-tidy
Tidy up some of the documentation in the FiveByFive example
2022-10-25 13:53:16 +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
Will McGugan
ed395e3f2d Merge pull request #985 from Textualize/query-parse
Add sensible error to query
2022-10-25 11:28:37 +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
Will McGugan
2a3eed1379 No more ko-fi 2022-10-25 10:22:35 +01:00
Dave Pearson
7ebfb1e714 Make the game size Final
I mean... the clue is in the name of the game, right?
2022-10-25 08:57:00 +01:00
Dave Pearson
ce6ed54f37 Tidy up various class properties documentation
Rather than use the Sphinx-influenced '#:' style of comment, switch to the
more docstring-a-like approach used in the Google style.
2022-10-25 08:54:50 +01:00
Dave Pearson
f3105d149c Merge pull request #1004 from mbridak/patch-1
Typo...
2022-10-24 20:56:01 +01:00
Dave Pearson
512af0c908 Add a test for the shown_keys property 2022-10-24 20:43:43 +01:00
Michael Bridak
9d76c8c65e Typo... 2022-10-24 12:30:58 -07:00
Dave Pearson
f0068ac566 Add a test for getting an unknown key 2022-10-24 20:20:24 +01:00
Dave Pearson
cb0d2f2efd Add a test for turning a tuple into a binding 2022-10-24 20:16:46 +01:00
Dave Pearson
9b80236a0d Add a test for binding tuples of the wrong size 2022-10-24 16:57:07 +01:00
Dave Pearson
9b1c23a432 Add a test for Size.line_range 2022-10-24 16:34:34 +01:00
Darren Burns
5adbba7674 Increase sleep between key-presses 2022-10-24 16:11:59 +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
67c3b83f80 Remove animation from checkbox snapshot test 2022-10-24 12:18:35 +01:00
Darren Burns
c6418e5e20 Snapshot testing data table, checkbox interactions 2022-10-24 12:14:52 +01:00
Dave Pearson
472ca5cd3f Complete coverage of arrangement doc options
While the code in _arrange.py does mark the unknown dock type branch as
being for the benefit of type checkers only, and was marked as to be ignored
for the purposes of coverage, it was still showing in a coverage test and
it's not a terrible thing to ensure that a user, giving the wrong type of
dock in their own code, will get the expected result.
2022-10-24 11:43:02 +01:00
Dave Pearson
d7da8c6851 Absolute the intended result path
Because testing on Windows is going to add a drive to any absolute path, and
in the tests we don't want to make it specific to something like that, take
the absolute path to test against and then absolute it again which is pretty
much a NOP on a Unix-a-like, but will add the drive on Windows.
2022-10-24 11:26:43 +01:00
Darren Burns
8a92cc470b Merge branch 'main' of github.com:Textualize/textual into more-testing 2022-10-24 11:16:56 +01:00
Dave Pearson
129857ff9e Add tests for the LRUCacge maxsize setter/getter 2022-10-24 11:11:06 +01:00
Dave Pearson
6c9a1a6e5d Add tests for the initialisation of CSS_PATH
This improves coverage of _make_path_object_relative in _path.py, and
generally provides some simple tests of how CSS_PATH gets turned into a
css_path property of an App.

Note that if an actual CSS path gets added (something that has been mooted)
this will need updating.
2022-10-24 09:39:17 +01:00
Dave Pearson
e566f72fe6 Extend set of handled reserved characters for screenshots
This extends the set of reserved characters that are guarded against when
auto-generating a screenshot filename. The extension covers the most likely
candidates taken from:

   https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

This could be spun out into a more general filename cleaning function, which
takes OS and filesystem into account and covers every single reserved
character, but for the purposes of this bit of code this should be more than
enough.

Addresses #993.
2022-10-24 05:48:16 +01:00
Will McGugan
5057a6b307 Merge pull request #991 from davep/docs-mode-switch-hover-text
Fix the hover text for the docs dark mode switch
2022-10-23 22:18:04 +01:00