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
f45eddc1
Commit
f45eddc1
authored
Sep 06, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
cf70a986
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
lms/djangoapps/courseware/features/lti.feature
+4
-3
lms/djangoapps/courseware/features/lti.py
+2
-2
No files found.
lms/djangoapps/courseware/features/lti.feature
View file @
f45eddc1
...
@@ -3,15 +3,15 @@ Feature: LTI component
...
@@ -3,15 +3,15 @@ Feature: LTI component
Scenario
:
LTI component in LMS is not rendered
Scenario
:
LTI component in LMS is not rendered
Given
the course has correct LTI credentials
Given
the course has correct LTI credentials
And
the course has a LTI component with incorrect fields
And
the course has a
n
LTI component with incorrect fields
Then
I view the LTI and it is not rendered
Then
I view the LTI and it is not rendered
Scenario
:
LTI component in LMS is rendered
Scenario
:
LTI component in LMS is rendered
Given
the course has correct LTI credentials
Given
the course has correct LTI credentials
And
the course has a LTI component filled with correct fields
And
the course has a
n
LTI component filled with correct fields
Then
I view the LTI and it is rendered
Then
I view the LTI and it is rendered
Scenario
:
LTI component in LMS is rendered incorrectly
Scenario
:
LTI component in LMS is rendered incorrectly
Given
the course has incorrect LTI credentials
Given
the course has incorrect LTI credentials
And
the course has a LTI component filled with correct fields
And
the course has a
n
LTI component filled with correct fields
Then
I view the LTI but incorrect_signature warning is rendered
Then
I view the LTI but incorrect_signature warning is rendered
\ No newline at end of file
lms/djangoapps/courseware/features/lti.py
View file @
f45eddc1
...
@@ -91,7 +91,7 @@ def set_incorrect_lti_passport(_step):
...
@@ -91,7 +91,7 @@ def set_incorrect_lti_passport(_step):
i_am_registered_for_the_course
(
coursenum
,
metadata
)
i_am_registered_for_the_course
(
coursenum
,
metadata
)
@step
(
'the course has a LTI component filled with correct fields$'
)
@step
(
'the course has a
n
LTI component filled with correct fields$'
)
def
add_correct_lti_to_course
(
_step
):
def
add_correct_lti_to_course
(
_step
):
category
=
'lti'
category
=
'lti'
world
.
ItemFactory
.
create
(
world
.
ItemFactory
.
create
(
...
@@ -116,7 +116,7 @@ def add_correct_lti_to_course(_step):
...
@@ -116,7 +116,7 @@ def add_correct_lti_to_course(_step):
world
.
browser
.
visit
(
url
)
world
.
browser
.
visit
(
url
)
@step
(
'the course has a LTI component with incorrect fields$'
)
@step
(
'the course has a
n
LTI component with incorrect fields$'
)
def
add_incorrect_lti_to_course
(
_step
):
def
add_incorrect_lti_to_course
(
_step
):
category
=
'lti'
category
=
'lti'
world
.
ItemFactory
.
create
(
world
.
ItemFactory
.
create
(
...
...
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