|
15 | 15 | from nested_pandas.nestedframe.io import ( |
16 | 16 | FSSPEC_BLOCK_SIZE, |
17 | 17 | _get_storage_options_and_path, |
18 | | - _is_directory, |
19 | 18 | _transform_read_parquet_data_arg, |
20 | 19 | from_pyarrow, |
21 | 20 | ) |
@@ -498,31 +497,3 @@ def test__get_storage_options_and_path(): |
498 | 497 | # Test with invalid type |
499 | 498 | with pytest.raises(TypeError): |
500 | 499 | _get_storage_options_and_path(123) |
501 | | - |
502 | | - |
503 | | -def test__is_directory(): |
504 | | - """Test _is_directory function with various input types.""" |
505 | | - # Test with Path object pointing to a directory |
506 | | - dir_path = Path("tests/test_data") |
507 | | - assert _is_directory(dir_path) is True |
508 | | - |
509 | | - # Test with Path object pointing to a file |
510 | | - file_path = Path("tests/test_data/nested.parquet") |
511 | | - assert _is_directory(file_path) is False |
512 | | - |
513 | | - # Test with string pointing to a directory |
514 | | - str_dir_path = "tests/test_data" |
515 | | - assert _is_directory(str_dir_path) is True |
516 | | - |
517 | | - # Test with string pointing to a file |
518 | | - str_file_path = "tests/test_data/nested.parquet" |
519 | | - assert _is_directory(str_file_path) is False |
520 | | - |
521 | | - # Test with non-existent path (should return False) |
522 | | - non_existent = Path("tests/non_existent_directory") |
523 | | - assert _is_directory(non_existent) is False |
524 | | - |
525 | | - # Test with other types (should return False) |
526 | | - assert _is_directory(123) is False |
527 | | - assert _is_directory(None) is False |
528 | | - assert _is_directory([]) is False |
0 commit comments