()
| 63 | |
| 64 | |
| 65 | def test_ipy_display_hook__repr_html() -> None: |
| 66 | console = Console(file=io.StringIO(), force_jupyter=True) |
| 67 | |
| 68 | class Thing: |
| 69 | def _repr_html_(self): |
| 70 | return "hello" |
| 71 | |
| 72 | console.begin_capture() |
| 73 | _ipy_display_hook(Thing(), console=console) |
| 74 | |
| 75 | # Rendering delegated to notebook because _repr_html_ method exists |
| 76 | assert console.end_capture() == "" |
| 77 | |
| 78 | |
| 79 | def test_ipy_display_hook__multiple_special_reprs() -> None: |
nothing calls this directly
no test coverage detected