summaryrefslogtreecommitdiff
path: root/apitest.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-09-26 13:26:20 +0300
committerLars Wirzenius <liw@liw.fi>2017-09-26 13:26:20 +0300
commita32ec0c8e2924aca80b14fccc175f5fc360ec992 (patch)
treefe758a43554276229d47a0e0fe60c65e4fb36731 /apitest.py
parent7f10c4dfa145ff11661106f3aec6c70e95be6af5 (diff)
downloadapifw-a32ec0c8e2924aca80b14fccc175f5fc360ec992.tar.gz
Fix: use random port when running tests
Diffstat (limited to 'apitest.py')
-rw-r--r--apitest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apitest.py b/apitest.py
index 6e1867a..946e9e1 100644
--- a/apitest.py
+++ b/apitest.py
@@ -47,7 +47,7 @@ class Api(apifw.Api):
},
]
- def version(self, content_type, body):
+ def version(self, content_type, body, **kwargs):
return apifw.Response({
'status': apifw.HTTP_OK,
'body': 'version: 4.2',
@@ -56,7 +56,7 @@ class Api(apifw.Api):
},
})
- def upload(self, content_type, body):
+ def upload(self, content_type, body, **kwargs):
return apifw.Response({
'status': apifw.HTTP_OK,
'body': 'thank you for %s\n' % body.decode('ascii'),