mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
[git_cl_test] Fix test mocking for git_auth.AutoConfigure
Bug: 404613530 Change-Id: I307637ccd5ac5e59ca13588572dd0cb0bf691d03 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6431247 Reviewed-by: Yiwei Zhang <yiwzhang@google.com> Commit-Queue: Allen Li <ayatane@chromium.org>
This commit is contained in:
@@ -2448,6 +2448,7 @@ class TestGitCl(unittest.TestCase):
|
||||
mock.patch(
|
||||
'git_cl.gerrit_util.CookiesAuthenticator',
|
||||
CookiesAuthenticatorMockFactory(hosts_with_creds=auth)).start()
|
||||
mock.patch('git_auth.AutoConfigure', return_value=None).start()
|
||||
scm.GIT.SetConfig('', 'remote.origin.url',
|
||||
'https://chromium.googlesource.com/my/repo')
|
||||
cl = git_cl.Changelist()
|
||||
|
||||
Reference in New Issue
Block a user