Skip to content

Commit

Permalink
test(datasets): check ibis.TableDataset.exists()
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <[email protected]>
  • Loading branch information
deepyaman committed Mar 4, 2024
1 parent d95e7de commit 98db223
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kedro-datasets/tests/ibis/test_table_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ def test_save_and_load(self, table_dataset, dummy_table):
table_dataset.save(dummy_table)
reloaded = table_dataset.load()
assert_frame_equal(dummy_table.execute(), reloaded.execute())

def test_exists(self, table_dataset, dummy_table):
"""Test `exists` method invocation for both existing and
nonexistent data set."""
assert not table_dataset.exists()
table_dataset.save(dummy_table)
assert table_dataset.exists()

0 comments on commit 98db223

Please sign in to comment.