We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eefb56 commit 2442b4cCopy full SHA for 2442b4c
tests/fixtures/hub.py
@@ -1,6 +1,7 @@
1
import os.path
2
import time
3
from contextlib import contextmanager
4
+from pathlib import Path
5
from unittest.mock import patch
6
7
import pytest
@@ -16,7 +17,7 @@
16
17
18
CI_HUB_ENDPOINT = "https://hub-ci.huggingface.co"
19
CI_HUB_DATASETS_URL = CI_HUB_ENDPOINT + "/datasets/{repo_id}/resolve/{revision}/{path}"
-CI_HUB_TOKEN_PATH = os.path.expanduser("~/.huggingface/hub_ci_token")
20
+CI_HUB_TOKEN_PATH = Path("~/.huggingface/hub_ci_token").expanduser()
21
22
23
@pytest.fixture
0 commit comments