From a32ec0c8e2924aca80b14fccc175f5fc360ec992 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 26 Sep 2017 13:26:20 +0300 Subject: Fix: use random port when running tests --- apitest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apitest.py') 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'), -- cgit v1.2.1