mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 10:08:40 +00:00
added test
This commit is contained in:
parent
ad85d8a84f
commit
4472ce441a
2 changed files with 12 additions and 2 deletions
|
@ -6,14 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
|
||||
## [Unreleased]
|
||||
## [12.6.0] - Unreleased
|
||||
|
||||
### Added
|
||||
|
||||
- Parse ANSI escape sequences in pretty repr https://github.com/Textualize/rich/pull/2470
|
||||
- Add support for `FORCE_COLOR` env var https://github.com/Textualize/rich/pull/2449
|
||||
- Allow a `max_depth` argument to be passed to the `install()` hook https://github.com/Textualize/rich/issues/2486
|
||||
- Document using `None` as name in `__rich_repr__` for tuple posotional args https://github.com/Textualize/rich/pull/2379
|
||||
- Document using `None` as name in `__rich_repr__` for tuple positional args https://github.com/Textualize/rich/pull/2379
|
||||
|
||||
### Fixed
|
||||
|
||||
|
|
|
@ -66,6 +66,16 @@ def test_truecolor_terminal():
|
|||
assert console.color_system == "truecolor"
|
||||
|
||||
|
||||
@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")
|
||||
def test_kitty_terminal():
|
||||
console = Console(
|
||||
force_terminal=True,
|
||||
legacy_windows=False,
|
||||
_environ={"TERM": "xterm-kitty"},
|
||||
)
|
||||
assert console.color_system == "256"
|
||||
|
||||
|
||||
def test_console_options_update():
|
||||
options = ConsoleOptions(
|
||||
ConsoleDimensions(80, 25),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue