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