Skip to content

rs_rich.ext.testing

Generated from the type stubs by scripts/gen_python_api.py; do not edit.

rs_rich.ext.testing: render snapshots and rendered-diff assertions (rich_ext::testing and rich_ext::diff::assert).

Failed assertions raise AssertionError with the diff rich-ext renders.

No Rich counterpart: this is the port's own rs-rich-ext crate.

render_snapshot

render_snapshot(renderable: Any, *, target: Any = ..., width: int = ...) -> Dict[str, Any]

assert_render_eq

assert_render_eq(renderable: Any, expected: str, width: int = ..., message: Optional[str] = ...) -> None

assert_str_eq

assert_str_eq(left: str, right: str, message: Optional[str] = ...) -> None

assert_json_eq

assert_json_eq(left: Any, right: Any, message: Optional[str] = ...) -> None

highlighter_conformance

highlighter_conformance(highlighter: Any, *, all_themes: bool = ..., scaling: bool = ...) -> None