Skip to content

Commit

Permalink
update name of dummy dataset user (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wauplin authored Feb 7, 2024
1 parent 400697c commit 464a34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_hf_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/testing_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 464a34f

Please sign in to comment.