Skip to content

Commit

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


@pytest.mark.parametrize("engine", ["pyarrow", "rust"])
def test_empty(existing_table: DeltaTable, engine):
with pytest.raises(DeltaError):
write_deltalake(existing_table, pa.table([]), mode="append", engine=engine)
with pytest.raises(DeltaError):
write_deltalake(existing_table, pa.table([]), mode="append", engine=engine)
def test_empty(existing_table: DeltaTable):
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")

0 comments on commit 42767ff

Please sign in to comment.