summaryrefslogtreecommitdiff
path: root/service/test/support/test_helper.py
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-11-29 15:05:34 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-11-29 15:05:34 +0100
commit1ba7abb6098ffba76ab7ed85e491dc060c5c4520 (patch)
tree4ca227c563bd2580bb0d4d77e0f516ea6fa28e0a /service/test/support/test_helper.py
parentcec3cbf731f0e56cb96de27a070bdaf72e985eb0 (diff)
parent0d293fad65d90b43016c21a851df100aebbf46cb (diff)
Merge branch 'master' into signup
Diffstat (limited to 'service/test/support/test_helper.py')
-rw-r--r--service/test/support/test_helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/test/support/test_helper.py b/service/test/support/test_helper.py
index 3323a14e..fbff5819 100644
--- a/service/test/support/test_helper.py
+++ b/service/test/support/test_helper.py
@@ -100,7 +100,7 @@ class TestRequest:
class PixRequestMock(DummyRequest):
def __init__(self, path):
DummyRequest.__init__(self, path)
- self.path = "/".join(path)
+ self.path = '/' + "/".join(path)
self.content = None
self.code = None
self.cookies = {}
@@ -121,7 +121,7 @@ class PixRequestMock(DummyRequest):
def request_mock(path='', method='GET', body='', headers={}, ajax=True, csrf='token'):
- dummy = PixRequestMock(path.split('/'))
+ dummy = PixRequestMock(path[1:].split('/'))
for name, val in headers.iteritems():
dummy.requestHeaders.setRawHeaders(name.lower(), [val])
dummy.method = method