Skip to content

Commit

Permalink
Added mock cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Aug 9, 2024
1 parent e1bbb85 commit 1c9228a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/mock_cache_dir/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is just a mock cache directory, which implements a folder with a link to the results folder in root.
1 change: 1 addition & 0 deletions tests/mock_cache_dir/results/results
2 changes: 1 addition & 1 deletion tests/test_load_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def test_load_results():
"""Ensures that files can be loaded using MTEB"""
tests_path = Path(__file__).parent.parent / "results"
tests_path = Path(__file__).parent / "mock_cache_dir"

os.environ["MTEB_CACHE"] = str(tests_path)

Expand Down

0 comments on commit 1c9228a

Please sign in to comment.