rich/tests
K2 adcb5c748c Add tqdm compatibility shim with Rich progress backend
Implements a runtime adapter that replaces tqdm imports with Rich's
progress bars via install_tqdm(). The shim preserves common tqdm APIs
(iteration, len(), postfix, write, wrapattr) while routing rendering
through rich.progress.Progress.

Features:
- Opt-in monkeypatching of tqdm/trange and notebook variants
- Shared global Progress instance for performance
- Render throttling via mininterval/miniters/maxinterval
- Simplified text backend for file outputs (partial mode)
- Postfix value caching to avoid redundant formatting

Includes runnable examples demonstrating basic replacement and
aggressive reference overwriting, plus comprehensive unit tests
covering adapter installation, throttling, and postfix handling.

Updates README and contributor list.
2025-12-05 07:41:51 -05:00
..
__init__.py init 2020-07-16 17:49:12 +01:00
_card_render.py tests for 3.12 2023-09-30 14:35:17 +01:00
conftest.py Fix running tests in environment with FORCE_COLOR or NO_COLOR set 2023-12-09 15:25:21 +01:00
pytest.ini docs 2020-01-11 16:13:39 +00:00
render.py fix invalid escapes 2022-08-11 21:03:13 -05:00
test_align.py Black formatting (#3035) 2023-11-07 17:57:21 +00:00
test_ansi.py Strip problematic private escape sequences: 2024-02-12 16:49:00 -08:00
test_bar.py rich measure 2021-03-25 21:08:36 +00:00
test_block_bar.py rich measure 2021-03-25 21:08:36 +00:00
test_box.py refactoring test_box_substitute: smaller and focused tests are better than large ones 2023-01-30 17:55:20 -03:00
test_card.py tests for 3.12 2023-09-30 14:35:17 +01:00
test_cells.py changelog 2024-10-22 16:29:46 +01:00
test_color.py Black formatting (#3035) 2023-11-07 17:57:21 +00:00
test_color_triplet.py tests for color_triplet 2019-12-11 14:40:49 +00:00
test_columns.py chore: fix typos 2022-01-06 22:44:05 -08:00
test_columns_align.py background style, table width calculation 2020-10-15 21:17:03 +01:00
test_console.py TTY_INTERACTIVE env var 2025-06-20 21:23:40 +01:00
test_constrain.py rich measure 2021-03-25 21:08:36 +00:00
test_containers.py rich measure 2021-03-25 21:08:36 +00:00
test_control.py [inspect] Address PR feedback on ASCII special characters' replacement with their escaped version 2022-05-27 14:56:55 +01:00
test_emoji.py emoji variant 2021-07-12 19:09:08 +01:00
test_file_proxy.py Black formatting (#3035) 2023-11-07 17:57:21 +00:00
test_filesize.py Add some tests for new decimal() params 2021-07-09 09:57:31 +00:00
test_getfileno.py methof ans tests 2022-11-30 17:10:33 +07:00
test_highlighter.py Fix [BUG] @ breaks highlighting in hyperlink #3327 2024-08-15 21:21:18 +05:30
test_inspect.py test fixes 2025-10-09 09:35:09 +01:00
test_json.py json: add support for default encoder 2021-10-06 11:29:18 +05:45
test_jupyter.py Update column width, CHANGELOG, CONTRIBUTORS 2022-06-09 23:07:28 +01:00
test_layout.py Fix wrapping issue 2022-05-25 16:25:10 +01:00
test_live.py test fixes 2025-06-18 08:29:31 +01:00
test_live_render.py Added max height 2021-07-11 14:25:14 +01:00
test_log.py fix for text in panel title 2022-09-23 14:59:40 +01:00
test_logging.py Remove undefined function (make_log) usage in test_logging.py 2025-05-28 21:01:12 -04:00
test_markdown.py test fixes 2025-06-18 08:29:31 +01:00
test_markdown_no_hyperlinks.py tests for 3.12 2023-09-30 14:35:17 +01:00
test_markup.py escape last slash 2023-07-29 09:15:00 +01:00
test_measure.py rich measure 2021-03-25 21:08:36 +00:00
test_null_file.py Drop extra IO type properties only needed by Python 3.6 2022-10-10 16:32:50 +01:00
test_padding.py Added max height 2021-07-11 14:25:14 +01:00
test_palette.py black 2020-12-28 16:35:55 +00:00
test_panel.py fix(panel): fix title missing panel background 2025-05-01 21:49:07 +01:00
test_pick.py improved test_pick 2023-01-29 10:59:22 -03:00
test_pretty.py test fixes 2025-10-09 09:35:09 +01:00
test_progress.py revert iteration speed column 2024-09-30 20:16:08 +01:00
test_prompt.py refactor to 'case_sensitive' with default True 2023-11-08 08:12:49 +00:00
test_protocol.py race condition and tests 2021-11-27 19:41:29 +00:00
test_ratio.py Fix double Optional 2021-04-22 20:24:23 -07:00
test_repr.py Drop Python 3.7 leftovers 2024-10-01 09:26:19 -04:00
test_rich_print.py Values exceeding the console's width break print_json 2021-11-06 11:49:33 -07:00
test_rule.py Fix hang when Rule title greater than required space 2022-06-15 14:49:15 +01:00
test_rule_in_table.py Add Rule.__rich_measure__ and tests vs behaviour in tables 2022-05-24 13:42:42 +01:00
test_screen.py disable legacy windows 2021-11-09 17:43:23 +00:00
test_segment.py test single cell widths 2024-10-22 16:13:14 +01:00
test_spinner.py Fix hang when Rule title greater than required space 2022-06-15 14:49:15 +01:00
test_stack.py Black formatting (#3035) 2023-11-07 17:57:21 +00:00
test_status.py Black formatting (#3035) 2023-11-07 17:57:21 +00:00
test_style.py Clear hashed cache when clearing meta. 2023-04-28 11:46:52 +01:00
test_styled.py rich measure 2021-03-25 21:08:36 +00:00
test_syntax.py added test 2025-06-23 17:11:06 +01:00
test_table.py fix(table): highlight columns added by add_row 2024-10-03 16:05:56 +01:00
test_text.py test fixes 2025-10-09 09:35:09 +01:00
test_theme.py blackified 2020-10-03 14:12:52 +01:00
test_tools.py docs 2020-06-06 13:11:29 +01:00
test_tqdm_adapter.py Add tqdm compatibility shim with Rich progress backend 2025-12-05 07:41:51 -05:00
test_tqdm_parity.py Add tqdm compatibility shim with Rich progress backend 2025-12-05 07:41:51 -05:00
test_tqdm_related.py Add tqdm compatibility shim with Rich progress backend 2025-12-05 07:41:51 -05:00
test_traceback.py test for infinite loop 2025-06-19 09:21:31 +01:00
test_tree.py Fix test_tree_measure test 2022-09-19 12:24:03 +01:00
test_win32_console.py [win32] Use initial cursor size when hiding or showing it 2022-06-15 08:37:38 +01:00
test_windows_renderer.py Setting terminal window title (#2200) 2022-04-19 17:20:17 +01:00