Skip to content

Commit 2442b4c

Browse files
committed
patch CI_HUB_TOKEN_PATH with Path instead of str
1 parent 5eefb56 commit 2442b4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/fixtures/hub.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os.path
22
import time
33
from contextlib import contextmanager
4+
from pathlib import Path
45
from unittest.mock import patch
56

67
import pytest
@@ -16,7 +17,7 @@
1617

1718
CI_HUB_ENDPOINT = "https://hub-ci.huggingface.co"
1819
CI_HUB_DATASETS_URL = CI_HUB_ENDPOINT + "/datasets/{repo_id}/resolve/{revision}/{path}"
19-
CI_HUB_TOKEN_PATH = os.path.expanduser("~/.huggingface/hub_ci_token")
20+
CI_HUB_TOKEN_PATH = Path("~/.huggingface/hub_ci_token").expanduser()
2021

2122

2223
@pytest.fixture

0 commit comments

Comments
 (0)