Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Disable hub upload test (#5621)
Browse files Browse the repository at this point in the history
* Update for the new version of huggingface-hub

* Disable the test
  • Loading branch information
dirkgr authored Apr 14, 2022
1 parent 0c4983a commit 0d25f96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/common/push_to_hub_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@ def with_staging_testing(func):
)

hf_api = patch(
"huggingface_hub.hf_api.ENDPOINT",
"huggingface_hub.constants.ENDPOINT",
ENDPOINT_STAGING,
)

repository = patch(
"huggingface_hub.repository.ENDPOINT",
"huggingface_hub.constants.ENDPOINT",
ENDPOINT_STAGING,
)

return repository(hf_api(file_download(func)))


@pytest.mark.skip(reason="This test does not work anymore with the new version of huggingface-hub.")
class TestPushToHub(AllenNlpTestCase):
def setup_method(self):
super().setup_method()
Expand Down

0 comments on commit 0d25f96

Please sign in to comment.