Remove-auth-token (#27060)
* don't use `use_auth_token`internally * let's use token everywhere * fixup
This commit is contained in:
@@ -132,10 +132,10 @@ class GetFromCacheTests(unittest.TestCase):
|
||||
"""Test download file from a gated repo fails with correct message when not authenticated."""
|
||||
with self.assertRaisesRegex(EnvironmentError, "You are trying to access a gated repo."):
|
||||
# All files except README.md are protected on a gated repo.
|
||||
cached_file(GATED_REPO, "gated_file.txt", use_auth_token=False)
|
||||
cached_file(GATED_REPO, "gated_file.txt", token=False)
|
||||
|
||||
def test_has_file_gated_repo(self):
|
||||
"""Test check file existence from a gated repo fails with correct message when not authenticated."""
|
||||
with self.assertRaisesRegex(EnvironmentError, "is a gated repository"):
|
||||
# All files except README.md are protected on a gated repo.
|
||||
has_file(GATED_REPO, "gated_file.txt", use_auth_token=False)
|
||||
has_file(GATED_REPO, "gated_file.txt", token=False)
|
||||
|
||||
Reference in New Issue
Block a user