From 641f418e102218c4bf16fcd3124bfebed6217ef6 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Fri, 12 Feb 2021 21:46:17 +0100 Subject: [PATCH] [hf_api] delete deprecated methods and tests (2) --- tests/test_hf_api.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/test_hf_api.py b/tests/test_hf_api.py index 9f2ef57350..7815e0f8ab 100644 --- a/tests/test_hf_api.py +++ b/tests/test_hf_api.py @@ -27,16 +27,7 @@ from transformers.testing_utils import require_git_lfs USER = "__DUMMY_TRANSFORMERS_USER__" PASS = "__DUMMY_TRANSFORMERS_PASS__" -FILES = [ - ( - "nested/Test-{}.txt".format(int(time.time())), - os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures/input.txt"), - ), - ( - "nested/yoyo {}.txt".format(int(time.time())), # space is intentional - os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures/empty.txt"), - ), -] + ENDPOINT_STAGING = "https://moon-staging.huggingface.co" ENDPOINT_STAGING_BASIC_AUTH = f"https://{USER}:{PASS}@moon-staging.huggingface.co" @@ -69,11 +60,6 @@ class HfApiEndpointsTest(HfApiCommonTest): """ cls._token = cls._api.login(username=USER, password=PASS) - @classmethod - def tearDownClass(cls): - for FILE_KEY, FILE_PATH in FILES: - cls._api.delete_obj(token=cls._token, filetype="datasets", filename=FILE_KEY) - def test_whoami(self): user, orgs = self._api.whoami(token=self._token) self.assertEqual(user, USER)