Skip to content

Commit 30cf106

Browse files
committed
No longer needed
1 parent 94e654d commit 30cf106

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

tests/nested_pandas/nestedframe/test_io.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from nested_pandas.nestedframe.io import (
1616
FSSPEC_BLOCK_SIZE,
1717
_get_storage_options_and_path,
18-
_is_directory,
1918
_transform_read_parquet_data_arg,
2019
from_pyarrow,
2120
)
@@ -498,31 +497,3 @@ def test__get_storage_options_and_path():
498497
# Test with invalid type
499498
with pytest.raises(TypeError):
500499
_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

Comments
 (0)