From 464a34f07f9059ccba9c67ddb7e107cc3184b557 Mon Sep 17 00:00:00 2001 From: Lucain Date: Wed, 7 Feb 2024 16:39:14 +0100 Subject: [PATCH] update name of dummy dataset user (#2019) --- tests/test_hf_api.py | 4 ++-- tests/testing_constants.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_hf_api.py b/tests/test_hf_api.py index e0d7ef4da5..bf4f8fedbe 100644 --- a/tests/test_hf_api.py +++ b/tests/test_hf_api.py @@ -2674,8 +2674,8 @@ def test_list_likes_repos_auth_and_implicit_user(self) -> None: def test_list_likes_repos_auth_and_explicit_user(self) -> None: # User is explicit even if auth - likes = self.api.list_liked_repos(user="__DUMMY_DATASETS_SERVER_USER__", token=TOKEN) - self.assertEqual(likes.user, "__DUMMY_DATASETS_SERVER_USER__") + likes = self.api.list_liked_repos(user=OTHER_USER, token=TOKEN) + self.assertEqual(likes.user, OTHER_USER) def test_list_repo_likers(self) -> None: # Create a repo + like diff --git a/tests/testing_constants.py b/tests/testing_constants.py index 3b189724c3..88d0bc5a51 100644 --- a/tests/testing_constants.py +++ b/tests/testing_constants.py @@ -7,7 +7,7 @@ # Used to create repos that we don't own (example: for gated repo) # Token is not critical. Also public in https://github.com/huggingface/datasets-server -OTHER_USER = "__DUMMY_DATASETS_SERVER_USER__" +OTHER_USER = "DSSUser" OTHER_TOKEN = "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" ENDPOINT_PRODUCTION = "https://huggingface.co"