(
obj: XarrayTypes, section_headers: list[str]
)
| 27 | |
| 28 | |
| 29 | def assert_consistent_text_and_html( |
| 30 | obj: XarrayTypes, section_headers: list[str] |
| 31 | ) -> None: |
| 32 | actual_html = xarray_html_only_repr(obj) |
| 33 | actual_text = repr(obj) |
| 34 | for section_header in section_headers: |
| 35 | assert actual_html.count(section_header) == actual_text.count(section_header), ( |
| 36 | section_header |
| 37 | ) |
| 38 | |
| 39 | |
| 40 | assert_consistent_text_and_html_dataarray = partial( |
nothing calls this directly
no test coverage detected
searching dependent graphs…