Skip to content

Commit

Permalink
[hf_api] delete deprecated methods and tests (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-c committed Feb 12, 2021
1 parent eed31db commit 641f418
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/test_hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,7 @@

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"

Expand Down Expand Up @@ -69,11 +60,6 @@ def setUpClass(cls):
"""
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)
Expand Down

0 comments on commit 641f418

Please sign in to comment.