##// END OF EJS Templates
svn: fixed tests for svn backend.
marcink -
r2603:44eba3e8 default
parent child Browse files
Show More
@@ -117,6 +117,7 b' class SubversionTunnelWrapper(object):'
117 message=self._svn_string(message)))
117 message=self._svn_string(message)))
118 self.remove_configs()
118 self.remove_configs()
119 self.process.kill()
119 self.process.kill()
120 return 1
120
121
121 def interrupt(self, signum, frame):
122 def interrupt(self, signum, frame):
122 self.fail("Exited by timeout")
123 self.fail("Exited by timeout")
@@ -171,7 +172,7 b' class SubversionTunnelWrapper(object):'
171
172
172 first_response = self.get_first_client_response()
173 first_response = self.get_first_client_response()
173 if not first_response:
174 if not first_response:
174 self.fail("Repository name cannot be extracted")
175 return self.fail("Repository name cannot be extracted")
175
176
176 url_parts = urlparse.urlparse(first_response['url'])
177 url_parts = urlparse.urlparse(first_response['url'])
177 self.server.repo_name = url_parts.path.strip('/')
178 self.server.repo_name = url_parts.path.strip('/')
@@ -103,7 +103,7 b' class TestSubversionServer(object):'
103 return_value=0):
103 return_value=0):
104 with mock.patch.object(
104 with mock.patch.object(
105 SubversionTunnelWrapper, 'command',
105 SubversionTunnelWrapper, 'command',
106 return_value='date'):
106 return_value=['date']):
107
107
108 exit_code = server.run()
108 exit_code = server.run()
109 # SVN has this differently configured, and we get in our mock env
109 # SVN has this differently configured, and we get in our mock env
@@ -115,7 +115,7 b' class TestSubversionServer(object):'
115 from rhodecode.apps.ssh_support.lib.backends.svn import SubversionTunnelWrapper
115 from rhodecode.apps.ssh_support.lib.backends.svn import SubversionTunnelWrapper
116 with mock.patch.object(
116 with mock.patch.object(
117 SubversionTunnelWrapper, 'command',
117 SubversionTunnelWrapper, 'command',
118 return_value='date'):
118 return_value=['date']):
119 with mock.patch.object(
119 with mock.patch.object(
120 SubversionTunnelWrapper, 'get_first_client_response',
120 SubversionTunnelWrapper, 'get_first_client_response',
121 return_value=None):
121 return_value=None):
General Comments 0
You need to be logged in to leave comments. Login now