()
| 603 | |
| 604 | |
| 605 | def test_repr() -> None: |
| 606 | x: NamedArray[Any, np.dtype[np.uint64]] |
| 607 | x = NamedArray(("x",), np.array([0], dtype=np.uint64)) |
| 608 | |
| 609 | # Reprs should not crash: |
| 610 | r = x.__repr__() |
| 611 | x._repr_html_() |
| 612 | |
| 613 | # Basic comparison: |
| 614 | assert r == "<xarray.NamedArray (x: 1)> Size: 8B\narray([0], dtype=uint64)" |
| 615 | |
| 616 | |
| 617 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…