(self, create_test_datatree: Callable[[], DataTree])
| 1859 | assert actual["arr_with_attrs"].attrs == attrs |
| 1860 | |
| 1861 | def test_named_self(self, create_test_datatree: Callable[[], DataTree]) -> None: |
| 1862 | dt = create_test_datatree() |
| 1863 | |
| 1864 | def f(x: int, tree: DataTree, y: int): |
| 1865 | tree.attrs.update({"x": x, "y": y}) |
| 1866 | return tree |
| 1867 | |
| 1868 | attrs = {"x": 1, "y": 2} |
| 1869 | |
| 1870 | actual = dt.pipe((f, "tree"), **attrs) |
| 1871 | |
| 1872 | assert actual is dt and actual.attrs == attrs |
| 1873 | |
| 1874 | |
| 1875 | class TestIsomorphicEqualsAndIdentical: |
nothing calls this directly
no test coverage detected