##// END OF EJS Templates
tests: Fix up PATH_INFO to start with a slash...
johbo -
r438:de4b4a78 default
parent child Browse files
Show More
@@ -26,7 +26,7 b' from rhodecode.lib.middleware import vcs'
26 26
27 27 def test_is_hg():
28 28 environ = {
29 'PATH_INFO': 'rhodecode-dev',
29 'PATH_INFO': '/rhodecode-dev',
30 30 'QUERY_STRING': 'cmd=changegroup',
31 31 'HTTP_ACCEPT': 'application/mercurial'
32 32 }
@@ -35,7 +35,7 b' def test_is_hg():'
35 35
36 36 def test_is_hg_no_cmd():
37 37 environ = {
38 'PATH_INFO': 'rhodecode-dev',
38 'PATH_INFO': '/rhodecode-dev',
39 39 'QUERY_STRING': '',
40 40 'HTTP_ACCEPT': 'application/mercurial'
41 41 }
@@ -44,7 +44,7 b' def test_is_hg_no_cmd():'
44 44
45 45 def test_is_hg_empty_cmd():
46 46 environ = {
47 'PATH_INFO': 'rhodecode-dev',
47 'PATH_INFO': '/rhodecode-dev',
48 48 'QUERY_STRING': 'cmd=',
49 49 'HTTP_ACCEPT': 'application/mercurial'
50 50 }
@@ -53,7 +53,7 b' def test_is_hg_empty_cmd():'
53 53
54 54 def test_is_svn_returns_true_if_subversion_is_in_a_dav_header():
55 55 environ = {
56 'PATH_INFO': 'rhodecode-dev',
56 'PATH_INFO': '/rhodecode-dev',
57 57 'HTTP_DAV': 'http://subversion.tigris.org/xmlns/dav/svn/log-revprops'
58 58 }
59 59 assert vcs.is_svn(environ) is True
@@ -61,7 +61,7 b' def test_is_svn_returns_true_if_subversi'
61 61
62 62 def test_is_svn_returns_false_if_subversion_is_not_in_a_dav_header():
63 63 environ = {
64 'PATH_INFO': 'rhodecode-dev',
64 'PATH_INFO': '/rhodecode-dev',
65 65 'HTTP_DAV': 'http://stuff.tigris.org/xmlns/dav/svn/log-revprops'
66 66 }
67 67 assert vcs.is_svn(environ) is False
@@ -69,7 +69,7 b' def test_is_svn_returns_false_if_subvers'
69 69
70 70 def test_is_svn_returns_false_if_no_dav_header():
71 71 environ = {
72 'PATH_INFO': 'rhodecode-dev',
72 'PATH_INFO': '/rhodecode-dev',
73 73 }
74 74 assert vcs.is_svn(environ) is False
75 75
General Comments 0
You need to be logged in to leave comments. Login now