Show More
@@ -84,6 +84,7 b' def test_is_svn_returns_false_if_no_dav_' | |||||
84 | def test_is_svn_returns_true_if_magic_path_segment(): |
|
84 | def test_is_svn_returns_true_if_magic_path_segment(): | |
85 | environ = { |
|
85 | environ = { | |
86 | 'PATH_INFO': '/stub-repository/!svn/rev/4', |
|
86 | 'PATH_INFO': '/stub-repository/!svn/rev/4', | |
|
87 | 'REQUEST_METHOD': 'POST' | |||
87 | } |
|
88 | } | |
88 | assert vcs.is_svn(environ) |
|
89 | assert vcs.is_svn(environ) | |
89 |
|
90 | |||
@@ -114,7 +115,8 b' class TestVCSMiddleware(object):' | |||||
114 | def test_get_handler_app_retuns_svn_app_when_proxy_enabled(self, app): |
|
115 | def test_get_handler_app_retuns_svn_app_when_proxy_enabled(self, app): | |
115 | environ = { |
|
116 | environ = { | |
116 | 'PATH_INFO': SVN_REPO, |
|
117 | 'PATH_INFO': SVN_REPO, | |
117 | 'HTTP_DAV': 'http://subversion.tigris.org/xmlns/dav/svn/log' |
|
118 | 'HTTP_DAV': 'http://subversion.tigris.org/xmlns/dav/svn/log', | |
|
119 | 'REQUEST_METHOD': 'POST' | |||
118 | } |
|
120 | } | |
119 | application = Mock() |
|
121 | application = Mock() | |
120 | config = {'appenlight': False, 'vcs.backends': ['svn']} |
|
122 | config = {'appenlight': False, 'vcs.backends': ['svn']} | |
@@ -133,7 +135,8 b' class TestVCSMiddleware(object):' | |||||
133 | def test_get_handler_app_retuns_dummy_svn_app_when_proxy_disabled(self, app): |
|
135 | def test_get_handler_app_retuns_dummy_svn_app_when_proxy_disabled(self, app): | |
134 | environ = { |
|
136 | environ = { | |
135 | 'PATH_INFO': SVN_REPO, |
|
137 | 'PATH_INFO': SVN_REPO, | |
136 | 'HTTP_DAV': 'http://subversion.tigris.org/xmlns/dav/svn/log' |
|
138 | 'HTTP_DAV': 'http://subversion.tigris.org/xmlns/dav/svn/log', | |
|
139 | 'REQUEST_METHOD': 'POST' | |||
137 | } |
|
140 | } | |
138 | application = Mock() |
|
141 | application = Mock() | |
139 | config = {'appenlight': False, 'vcs.backends': ['svn']} |
|
142 | config = {'appenlight': False, 'vcs.backends': ['svn']} |
General Comments 0
You need to be logged in to leave comments.
Login now