From 452dd0e4d9c455e06c28ca6fb799d049f78fbd73 Mon Sep 17 00:00:00 2001 From: Julien Chaumond Date: Thu, 30 Apr 2020 12:06:01 -0400 Subject: [PATCH] [ci] Align test_hf_api.py with API change --- tests/test_hf_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_hf_api.py b/tests/test_hf_api.py index 6d3d82bcbf..67929d613c 100644 --- a/tests/test_hf_api.py +++ b/tests/test_hf_api.py @@ -28,11 +28,11 @@ USER = "__DUMMY_TRANSFORMERS_USER__" PASS = "__DUMMY_TRANSFORMERS_PASS__" FILES = [ ( - "Test-{}.txt".format(int(time.time())), + "nested/Test-{}.txt".format(int(time.time())), os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures/input.txt"), ), ( - "yoyo {}.txt".format(int(time.time())), # space is intentional + "nested/yoyo {}.txt".format(int(time.time())), # space is intentional os.path.join(os.path.dirname(os.path.abspath(__file__)), "fixtures/empty.txt"), ), ] @@ -73,10 +73,10 @@ class HfApiEndpointsTest(HfApiCommonTest): def test_presign_invalid_org(self): with self.assertRaises(HTTPError): - _ = self._api.presign(token=self._token, filename="fake_org.txt", organization="fake") + _ = self._api.presign(token=self._token, filename="nested/fake_org.txt", organization="fake") def test_presign_valid_org(self): - urls = self._api.presign(token=self._token, filename="valid_org.txt", organization="valid_org") + urls = self._api.presign(token=self._token, filename="nested/valid_org.txt", organization="valid_org") self.assertIsInstance(urls, PresignedUrl) def test_presign(self):