Skip to content

Commit 75a6999

Browse files
Minor code fixes and updates in test_tools.py
1 parent b84c6f0 commit 75a6999

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
def read_tests_hdf(path: str) -> pd.Series | pd.DataFrame:
7777
"""Reads tests data stored at the specified path within `test_tools.hdf` file."""
7878

79-
with pd.HDFStore(Path(__file__).parent / "test_tools.hdf") as store:
79+
with pd.HDFStore(str(Path(__file__).parent / "test_tools.hdf")) as store:
8080
return store[path]
8181

8282

@@ -85,7 +85,7 @@ def verify_paths(paths: Generator[Path, None, None], records: pd.Series) -> None
8585
Verifies whether all the specified paths are present in the specified records.
8686
"""
8787

88-
records = records.apply(lambda path: FILE_DIR_TEST_DIRECTORY / path).values
88+
records = records.apply(lambda path_: FILE_DIR_TEST_DIRECTORY / path_).values
8989

9090
for path in paths:
9191
assert path in records
@@ -113,7 +113,7 @@ def test_get_files_function(ctr: int, path: Path, recur: bool) -> None:
113113

114114
@pytest.mark.parametrize(("ctr", "path", "recur"), GET_DIRS_TEST_PARAMS)
115115
def test_get_directories_function(ctr: int, path: Path, recur: bool) -> None:
116-
"""Tests the `toolsget_directories` function."""
116+
"""Tests the `tools.get_directories` function."""
117117

118118
verify_paths(
119119
tools.get_directories(path, recur),

0 commit comments

Comments
 (0)