Skip to content

Commit

Permalink
fix for fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Oct 6, 2022
1 parent 41b61e8 commit 3459601
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .devel/pytest/test_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@

def test_paths():
path = "~/Projects/clustering-data-v1/"
assert "wut" in clustbench.get_battery_names(path)
assert "x1" in clustbench.get_dataset_names("wut", path)
if os.path.exists(path):
assert "wut" in clustbench.get_battery_names(path)
assert "x1" in clustbench.get_dataset_names("wut", path)

os.chdir(os.path.expanduser(path))
assert "wut" in clustbench.get_battery_names()
assert "x1" in clustbench.get_dataset_names("wut")
os.chdir(os.path.expanduser(path))
assert "wut" in clustbench.get_battery_names()
assert "x1" in clustbench.get_dataset_names("wut")

assert "wut" in clustbench.get_battery_names("../clustering-data-v1/")
assert "x1" in clustbench.get_dataset_names("wut", "../clustering-data-v1/")
assert "wut" in clustbench.get_battery_names("../clustering-data-v1/")
assert "x1" in clustbench.get_dataset_names("wut", "../clustering-data-v1/")


if __name__ == "__main__":
Expand Down

0 comments on commit 3459601

Please sign in to comment.