Commit 5e3c6736 by Alexander Kryklia

Fixes.

parent 6220da32
......@@ -214,7 +214,7 @@ class LTIModule(LTIFields, XModule):
# This is needed for body encoding:
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
_, headers, _ = client.sign(
__, headers, __ = client.sign(
unicode(self.launch_url),
http_method=u'POST',
body=body,
......
......@@ -49,7 +49,7 @@ class TestLTI(BaseTestXmodule):
Mocked oauth1 sign function.
"""
# self is <oauthlib.oauth1.rfc5849.Client object> here:
_, headers, _ = saved_sign(self, *args, **kwargs)
__, headers, __ = saved_sign(self, *args, **kwargs)
# we should replace noonce, timestamp and signed_signature in headers:
old = headers[u'Authorization']
old_parsed = OrderedDict([param.strip().replace('"', '').split('=') for param in old.split(',')])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment