Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
68fa9a59
"tests/models/vscode:/vscode.git/clone" did not exist on "55090585619d7ab880d9a7d7c8b327a746f7cc40"
Unverified
Commit
68fa9a59
authored
Aug 24, 2023
by
Sylvain Gugger
Browse files
Skip broken tests
parent
4d40109c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/utils/test_hub_utils.py
tests/utils/test_hub_utils.py
+2
-0
No files found.
tests/utils/test_hub_utils.py
View file @
68fa9a59
...
...
@@ -128,11 +128,13 @@ class GetFromCacheTests(unittest.TestCase):
self
.
assertIsNone
(
get_file_from_repo
(
tmp_dir
,
"b.txt"
))
@
unittest
.
skip
(
"Test is broken, fix me Wauplain!"
)
def
test_get_file_gated_repo
(
self
):
"""Test download file from a gated repo fails with correct message when not authenticated."""
with
self
.
assertRaisesRegex
(
EnvironmentError
,
"You are trying to access a gated repo."
):
cached_file
(
GATED_REPO
,
README_FILE
,
use_auth_token
=
False
)
@
unittest
.
skip
(
"Test is broken, fix me Wauplain!"
)
def
test_has_file_gated_repo
(
self
):
"""Test check file existence from a gated repo fails with correct message when not authenticated."""
with
self
.
assertRaisesRegex
(
EnvironmentError
,
"is a gated repository"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment