tests.test_ansi moduleΒΆ Tests for click_extra.ansi, the ANSI escape grammar and its decoders. tests.test_ansi.test_open_ansi(text, expected)[source]ΒΆ tests.test_ansi.test_open_ansi_resumes_from_an_opened_state(text, expected)[source]ΒΆ tests.test_ansi.test_open_ansi_chunked_matches_one_shot()[source]ΒΆ Reading a string in two chunks answers like reading it whole. Every cut is tried except the ones splitting an escape in half, which no parser can carry across a chunk boundary. tests.test_ansi.test_strip_ansi(text, expected)[source]ΒΆ tests.test_ansi.test_strip_ansi_keeps_bytes_as_bytes()[source]ΒΆ tests.test_ansi.test_nearest_256_quantization(r, g, b, expected)[source]ΒΆ Verify RGB-to-256 quantization for representative values.