@@ -79,7 +79,7 @@ def test_vamana_ingestion_u8(tmp_path):
79
79
80
80
assert vfs .dir_size (index_uri ) > 0
81
81
Index .delete_index (uri = index_uri , config = {})
82
- assert vfs .dir_size (index_uri ) == 0
82
+ assert not vfs .is_dir (index_uri )
83
83
84
84
85
85
def test_flat_ingestion_u8 (tmp_path ):
@@ -376,7 +376,7 @@ def test_ingestion_fvec(tmp_path):
376
376
377
377
assert vfs .dir_size (index_uri ) > 0
378
378
Index .delete_index (uri = index_uri , config = {})
379
- assert vfs .dir_size (index_uri ) == 0
379
+ assert not vfs .is_dir (index_uri )
380
380
381
381
382
382
def test_ingestion_numpy (tmp_path ):
@@ -430,7 +430,7 @@ def test_ingestion_numpy(tmp_path):
430
430
431
431
assert vfs .dir_size (index_uri ) > 0
432
432
Index .delete_index (uri = index_uri , config = {})
433
- assert vfs .dir_size (index_uri ) == 0
433
+ assert not vfs .is_dir (index_uri )
434
434
435
435
436
436
def test_ingestion_numpy_i8 (tmp_path ):
@@ -486,7 +486,7 @@ def test_ingestion_numpy_i8(tmp_path):
486
486
487
487
assert vfs .dir_size (index_uri ) > 0
488
488
Index .delete_index (uri = index_uri , config = {})
489
- assert vfs .dir_size (index_uri ) == 0
489
+ assert not vfs .is_dir (index_uri )
490
490
491
491
492
492
def test_ingestion_multiple_workers (tmp_path ):
@@ -541,7 +541,7 @@ def test_ingestion_multiple_workers(tmp_path):
541
541
542
542
assert vfs .dir_size (index_uri ) > 0
543
543
Index .delete_index (uri = index_uri , config = {})
544
- assert vfs .dir_size (index_uri ) == 0
544
+ assert not vfs .is_dir (index_uri )
545
545
546
546
547
547
def test_ingestion_external_ids_numpy (tmp_path ):
@@ -590,7 +590,7 @@ def test_ingestion_external_ids_numpy(tmp_path):
590
590
591
591
assert vfs .dir_size (index_uri ) > 0
592
592
Index .delete_index (uri = index_uri , config = {})
593
- assert vfs .dir_size (index_uri ) == 0
593
+ assert not vfs .is_dir (index_uri )
594
594
595
595
596
596
def test_ingestion_timetravel (tmp_path ):
@@ -935,7 +935,7 @@ def test_ingestion_with_updates(tmp_path):
935
935
936
936
assert vfs .dir_size (index_uri ) > 0
937
937
Index .delete_index (uri = index_uri , config = {})
938
- assert vfs .dir_size (index_uri ) == 0
938
+ assert not vfs .is_dir (index_uri )
939
939
940
940
941
941
def test_ingestion_with_batch_updates (tmp_path ):
@@ -1003,7 +1003,7 @@ def test_ingestion_with_batch_updates(tmp_path):
1003
1003
1004
1004
assert vfs .dir_size (index_uri ) > 0
1005
1005
Index .delete_index (uri = index_uri , config = {})
1006
- assert vfs .dir_size (index_uri ) == 0
1006
+ assert not vfs .is_dir (index_uri )
1007
1007
1008
1008
1009
1009
def test_ingestion_with_updates_and_timetravel (tmp_path ):
@@ -1277,7 +1277,7 @@ def test_ingestion_with_updates_and_timetravel(tmp_path):
1277
1277
1278
1278
assert vfs .dir_size (index_uri ) > 0
1279
1279
Index .delete_index (uri = index_uri , config = {})
1280
- assert vfs .dir_size (index_uri ) == 0
1280
+ assert not vfs .is_dir (index_uri )
1281
1281
1282
1282
1283
1283
def test_ingestion_with_additions_and_timetravel (tmp_path ):
@@ -1335,7 +1335,7 @@ def test_ingestion_with_additions_and_timetravel(tmp_path):
1335
1335
1336
1336
assert vfs .dir_size (index_uri ) > 0
1337
1337
Index .delete_index (uri = index_uri , config = {})
1338
- assert vfs .dir_size (index_uri ) == 0
1338
+ assert not vfs .is_dir (index_uri )
1339
1339
1340
1340
1341
1341
def test_ivf_flat_ingestion_tdb_random_sampling_policy (tmp_path ):
0 commit comments