diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-09-26 13:26:20 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-09-26 13:26:20 +0300 |
commit | a32ec0c8e2924aca80b14fccc175f5fc360ec992 (patch) | |
tree | fe758a43554276229d47a0e0fe60c65e4fb36731 /apitest.py | |
parent | 7f10c4dfa145ff11661106f3aec6c70e95be6af5 (diff) | |
download | apifw-a32ec0c8e2924aca80b14fccc175f5fc360ec992.tar.gz |
Fix: use random port when running tests
Diffstat (limited to 'apitest.py')
-rw-r--r-- | apitest.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'), |