Skip to content

Commit

Permalink
remove tests that check non-implemented renaming in rebuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Dec 3, 2024
1 parent b375778 commit fa6ff9c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ def test_array_rebuild(ndjson_points_file: str) -> None:
y = daa.compute()
assert x.tolist() == y.tolist()

with pytest.raises(ValueError, match="rename= unsupported"):
daa._rebuild(daa.dask, rename={"x": "y"})


def test_type(ndjson_points_file: str) -> None:
daa = dak.from_json([ndjson_points_file] * 2)
Expand Down Expand Up @@ -661,15 +658,11 @@ def test_array_persist(daa: Array) -> None:
assert_eq(daa2, daa)


def test_scalar_persist_and_rebuild(daa: Array) -> None:
def test_scalar_persist(daa: Array) -> None:
coll = daa["points"][0]["x"][0]
coll2 = coll.persist()
assert_eq(coll, coll2)

m = dak.max(daa.points.x, axis=None)
with pytest.raises(ValueError, match="rename= unsupported"):
m._rebuild(m.dask, rename={m._name: "max2"})


def test_output_divisions(daa: Array) -> None:
assert dak.max(daa.points.y, axis=1).divisions == daa.divisions
Expand Down

0 comments on commit fa6ff9c

Please sign in to comment.