Skip to content

Commit 994f86c

Browse files
authored
ci: Fix pandas.DeltaTableDataset tests (#811)
Fix deltatable tests Signed-off-by: Ankita Katiyar <[email protected]>
1 parent e717fdb commit 994f86c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kedro-datasets/tests/pandas/test_deltatable_dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_overwrite_with_diff_schema(self, deltatable_dataset_from_path, dummy_df
4848
"""Test saving with the default overwrite mode with new data of diff schema."""
4949
deltatable_dataset_from_path.save(dummy_df)
5050
new_df = pd.DataFrame({"new_col": [1, 2]})
51-
pattern = "Schema of data does not match table schema"
51+
pattern = "Cannot cast schema, number of fields does not match: 1 vs 3"
5252
with pytest.raises(DatasetError, match=pattern):
5353
deltatable_dataset_from_path.save(new_df)
5454

@@ -167,4 +167,4 @@ def test_history(self, deltatable_dataset_from_path, dummy_df):
167167
deltatable_dataset_from_path.save(dummy_df)
168168
history = deltatable_dataset_from_path.history
169169
assert isinstance(history, list)
170-
assert history[0]["operation"] == "CREATE TABLE"
170+
assert history[0]["operation"] == "WRITE"

0 commit comments

Comments
 (0)