Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5e8aebf0
Commit
5e8aebf0
authored
Sep 06, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
a5016473
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/courseware/tests/test_lti.py
+3
-3
No files found.
lms/djangoapps/courseware/tests/test_lti.py
View file @
5e8aebf0
...
...
@@ -19,7 +19,7 @@ class TestLTI(BaseTestXmodule):
Mock oauth1 signing of requests library for testing.
"""
super
(
TestLTI
,
self
)
.
setUp
()
mocked_no
o
nce
=
u'135685044251684026041377608307'
mocked_nonce
=
u'135685044251684026041377608307'
mocked_timestamp
=
u'1234567890'
mocked_signature_after_sign
=
u'my_signature
%3
D'
mocked_decoded_signature
=
u'my_signature='
...
...
@@ -32,7 +32,7 @@ class TestLTI(BaseTestXmodule):
u'lti_message_type'
:
u'basic-lti-launch-request'
,
u'lti_version'
:
'LTI-1p0'
,
u'oauth_nonce'
:
mocked_no
o
nce
,
u'oauth_nonce'
:
mocked_nonce
,
u'oauth_timestamp'
:
mocked_timestamp
,
u'oauth_consumer_key'
:
u''
,
u'oauth_signature_method'
:
u'HMAC-SHA1'
,
...
...
@@ -53,7 +53,7 @@ class TestLTI(BaseTestXmodule):
# 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
(
','
)])
old_parsed
[
u'OAuth oauth_nonce'
]
=
mocked_no
o
nce
old_parsed
[
u'OAuth oauth_nonce'
]
=
mocked_nonce
old_parsed
[
u'oauth_timestamp'
]
=
mocked_timestamp
old_parsed
[
u'oauth_signature'
]
=
mocked_signature_after_sign
headers
[
u'Authorization'
]
=
', '
.
join
([
k
+
'="'
+
v
+
'"'
for
k
,
v
in
old_parsed
.
items
()])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment