Skip to content

Commit 6379480

Browse files
committed
add case for dry run
1 parent 75b1240 commit 6379480

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/table/test_delete_orphans.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ def test_delete_orphaned_files(catalog: Catalog) -> None:
6868
orphaned_file.touch()
6969
assert orphaned_file.exists()
7070

71+
# assert no files deleted if dry run...
72+
tbl.delete_orphaned_files(dry_run=True)
73+
assert orphaned_file.exists()
74+
7175
# should not delete because it was just created...
7276
tbl.delete_orphaned_files()
7377
assert orphaned_file.exists()

0 commit comments

Comments
 (0)