Skip to content

Commit

Permalink
adjust test
Browse files Browse the repository at this point in the history
  • Loading branch information
aersam committed Mar 11, 2024
1 parent c83f947 commit f131eb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,8 +1448,8 @@ def test_schema_cols_diff_order(tmp_path: pathlib.Path, engine):
assert dt.to_pyarrow_table(columns=["baz", "bar", "foo"]) == expected


def test_empty(existing_table: DeltaTable):
@pytest.mark.parametrize("engine", ["pyarrow", "rust"])
def test_empty(existing_table: DeltaTable, engine):
schema = existing_table.schema().to_pyarrow()
empty_table = pa.Table.from_pylist([], schema=schema)
with pytest.raises(DeltaError, match="No data source supplied to write command"):
write_deltalake(existing_table, empty_table, mode="append", engine="rust")
write_deltalake(existing_table, empty_table, mode="append", engine=engine)

0 comments on commit f131eb1

Please sign in to comment.