##// END OF EJS Templates
svn: fixed test
super-admin -
r5179:a31fb4ad default
parent child Browse files
Show More
@@ -100,9 +100,9 b' class TestSimpleSvn(object):'
100
100
101
101
102 class TestSimpleSvnApp(object):
102 class TestSimpleSvnApp(object):
103 data = '<xml></xml>'
103 data = b'<xml></xml>'
104 path = '/group/my-repo'
104 path = '/group/my-repo'
105 wsgi_input = io.StringIO(data)
105 wsgi_input = io.BytesIO(data)
106 environment = {
106 environment = {
107 'HTTP_DAV': (
107 'HTTP_DAV': (
108 'http://subversion.tigris.org/xmlns/dav/svn/depth,'
108 'http://subversion.tigris.org/xmlns/dav/svn/depth,'
@@ -187,7 +187,7 b' class TestSimpleSvnApp(object):'
187 request_mock.return_value = response_mock
187 request_mock.return_value = response_mock
188 self.app(self.environment, start_response)
188 self.app(self.environment, start_response)
189
189
190 expected_url = '{}{}'.format(self.host.strip('/'), self.path)
190 expected_url = f'{self.host.strip("/")}{self.path}'
191 expected_request_headers = {
191 expected_request_headers = {
192 'Dav': self.environment['HTTP_DAV'],
192 'Dav': self.environment['HTTP_DAV'],
193 'User-Agent': self.environment['HTTP_USER_AGENT'],
193 'User-Agent': self.environment['HTTP_USER_AGENT'],
General Comments 0
You need to be logged in to leave comments. Login now