Commit 641f418e authored by Julien Chaumond's avatar Julien Chaumond
Browse files

[hf_api] delete deprecated methods and tests (2)

parent eed31db9
...@@ -27,16 +27,7 @@ from transformers.testing_utils import require_git_lfs ...@@ -27,16 +27,7 @@ from transformers.testing_utils import require_git_lfs
USER = "__DUMMY_TRANSFORMERS_USER__" USER = "__DUMMY_TRANSFORMERS_USER__"
PASS = "__DUMMY_TRANSFORMERS_PASS__" 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 = "https://moon-staging.huggingface.co"
ENDPOINT_STAGING_BASIC_AUTH = f"https://{USER}:{PASS}@moon-staging.huggingface.co" ENDPOINT_STAGING_BASIC_AUTH = f"https://{USER}:{PASS}@moon-staging.huggingface.co"
...@@ -69,11 +60,6 @@ class HfApiEndpointsTest(HfApiCommonTest): ...@@ -69,11 +60,6 @@ class HfApiEndpointsTest(HfApiCommonTest):
""" """
cls._token = cls._api.login(username=USER, password=PASS) 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): def test_whoami(self):
user, orgs = self._api.whoami(token=self._token) user, orgs = self._api.whoami(token=self._token)
self.assertEqual(user, USER) self.assertEqual(user, USER)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment