Skip to content

Commit 60dcc68

Browse files
Wauplinlhoestq
authored andcommitted
patch CI_HUB_TOKEN_PATH with Path instead of str (#5026)
* patch CI_HUB_TOKEN_PATH with Path instead of str * flake8
1 parent 4a81477 commit 60dcc68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/fixtures/hub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import os.path
21
import time
32
from contextlib import contextmanager
3+
from pathlib import Path
44
from unittest.mock import patch
55

66
import pytest
@@ -16,7 +16,7 @@
1616

1717
CI_HUB_ENDPOINT = "https://hub-ci.huggingface.co"
1818
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")
19+
CI_HUB_TOKEN_PATH = Path("~/.huggingface/hub_ci_token").expanduser()
2020

2121

2222
@pytest.fixture

0 commit comments

Comments
 (0)