summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/test/support/test_helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/test/support/test_helper.py b/service/test/support/test_helper.py
index 3323a14e..c94d62c4 100644
--- a/service/test/support/test_helper.py
+++ b/service/test/support/test_helper.py
@@ -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