We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff461ed commit 3b3b10eCopy full SHA for 3b3b10e
1 file changed
tests/table/test_delete_orphans.py
@@ -79,6 +79,14 @@ def test_delete_orphaned_files(catalog: Catalog) -> None:
79
# modify creation date to be older than 3 days
80
five_days_ago = (datetime.now() - timedelta(days=5)).timestamp()
81
os.utime(orphaned_file, (five_days_ago, five_days_ago))
82
+ tbl.delete_orphaned_files()
83
+ assert not orphaned_file.exists()
84
+
85
+ # assert that all known files still exist...
86
+ all_known_files = tbl.inspect.all_known_files()
87
+ for files in all_known_files.values():
88
+ for file in files:
89
+ assert Path(file).exists()
90
91
92
def test_delete_orphaned_files_with_invalid_file_doesnt_error(catalog: Catalog) -> None:
0 commit comments