Skip to content

Commit 4617dfa

Browse files
authored
Fix tests (#12288)
This fixes tests on .com
1 parent 9b30ad6 commit 4617dfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

readthedocs/projects/tests/mockers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ def _mock_git_repository(self):
142142
"three",
143143
],
144144
)
145+
self.patches["git.Backend.has_ssh_key_with_write_access"] = mock.patch(
146+
"readthedocs.vcs_support.backends.git.Backend.has_ssh_key_with_write_access",
147+
return_value=False,
148+
)
145149

146150
def _mock_environment(self):
147151
# NOTE: by mocking `.run` we are not calling `.run_command_class`,

0 commit comments

Comments
 (0)