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 4a81477 commit 60dcc68Copy full SHA for 60dcc68
tests/fixtures/hub.py
@@ -1,6 +1,6 @@
1
-import os.path
2
import time
3
from contextlib import contextmanager
+from pathlib import Path
4
from unittest.mock import patch
5
6
import pytest
@@ -16,7 +16,7 @@
16
17
CI_HUB_ENDPOINT = "https://hub-ci.huggingface.co"
18
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")
+CI_HUB_TOKEN_PATH = Path("~/.huggingface/hub_ci_token").expanduser()
20
21
22
@pytest.fixture
0 commit comments