Skip to content

Commit

Permalink
Mod: Try to set cache path for windows unittests too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Sep 18, 2023
1 parent ca44630 commit 8b70bfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
preprocess_mono_sents,
preprocess_mult_sents,
)
from aac_metrics.utils.paths import set_default_tmp_path
from aac_metrics.utils.paths import set_default_cache_path, set_default_tmp_path


class TestReadmeExamples(TestCase):
Expand All @@ -28,6 +28,10 @@ def setUpClass(cls) -> None:
os.makedirs(tmp_path, exist_ok=True)
set_default_tmp_path(tmp_path)

cache_path = osp.join(".", "cache")
os.makedirs(cache_path, exist_ok=True)
set_default_cache_path(cache_path)

def test_example_1(self) -> None:
candidates: list[str] = ["a man is speaking", "rain falls"]
mult_references: list[list[str]] = [
Expand Down

0 comments on commit 8b70bfe

Please sign in to comment.