X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0e87ae0739ed3e72301b7b718098f97a7f06a5d8..f3958a113d7cb8eb3e3d31b3f05962e258960fa8:/apps/piston/test.py?ds=sidebyside diff --git a/apps/piston/test.py b/apps/piston/test.py index 57eda72be..f19fb213a 100644 --- a/apps/piston/test.py +++ b/apps/piston/test.py @@ -32,8 +32,8 @@ class OAuthClient(client.Client): url = "http://testserver" + request['PATH_INFO'] req = oauth.OAuthRequest.from_consumer_and_token( - self.consumer, token=self.token, - http_method=request['REQUEST_METHOD'], http_url=url, + self.consumer, token=self.token, + http_method=request['REQUEST_METHOD'], http_url=url, parameters=params ) @@ -49,7 +49,7 @@ class OAuthClient(client.Client): if isinstance(data, dict): data = urlencode(data) - + return super(OAuthClient, self).post(path, data, content_type, follow, **extra) class TestCase(test.TestCase):