Skip to content

Commit

Permalink
fix: test case on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ArslanSaleem committed Jan 8, 2025
1 parent 7e207eb commit 3982c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/dataframe/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def test_get_cache_file_path_with_destination_path(self, sample_schema):
loader.dataset_path = "test/users"
cache_path = loader._get_cache_file_path()
if sys.platform.startswith("win"):
assert cache_path.endswith("datasets\\test\\users\\users.parquet")
assert cache_path.endswith("datasets\\test/users\\users.parquet")
else:
assert cache_path.endswith("datasets/test/users/users.parquet")

Expand All @@ -132,7 +132,7 @@ def test_get_cache_file_path_without_destination_path(self, sample_schema):
loader.dataset_path = "test/users"
cache_path = loader._get_cache_file_path()
if sys.platform.startswith("win"):
assert cache_path.endswith("datasets\\test\\users\\data.parquet")
assert cache_path.endswith("datasets\\test/users\\data.parquet")
else:
assert cache_path.endswith("datasets/test/users/data.parquet")

Expand Down

0 comments on commit 3982c45

Please sign in to comment.