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
874d7a02
Commit
874d7a02
authored
Dec 09, 2013
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix LTI acceptance tests
parent
b406ba0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
lms/djangoapps/courseware/features/lti.py
+6
-9
No files found.
lms/djangoapps/courseware/features/lti.py
View file @
874d7a02
...
@@ -7,7 +7,7 @@ from lettuce import world, step
...
@@ -7,7 +7,7 @@ from lettuce import world, step
from
lettuce.django
import
django_url
from
lettuce.django
import
django_url
from
common
import
course_id
from
common
import
course_id
from
student.models
import
CourseEnrollment
from
courseware.tests.factories
import
InstructorFactory
@step
(
'I view the LTI and error is shown$'
)
@step
(
'I view the LTI and error is shown$'
)
...
@@ -195,15 +195,12 @@ def i_am_registered_for_the_course(course, metadata):
...
@@ -195,15 +195,12 @@ def i_am_registered_for_the_course(course, metadata):
# Create the course
# Create the course
create_course
(
course
,
metadata
)
create_course
(
course
,
metadata
)
# Create the user
# Create an instructor
world
.
create_user
(
'robot'
,
'test'
)
instructor
=
InstructorFactory
(
course
=
world
.
scenario_dict
[
'COURSE'
]
.
location
)
usr
=
User
.
objects
.
get
(
username
=
'robot'
)
# If the user is not already enrolled, enroll the user.
# Enroll the user in the course and log them in
CourseEnrollment
.
enroll
(
usr
,
course_id
(
course
))
world
.
enroll_user
(
instructor
,
course_id
(
course
))
world
.
log_in
(
username
=
instructor
.
username
,
password
=
'test'
)
world
.
add_to_course_staff
(
'robot'
,
world
.
scenario_dict
[
'COURSE'
]
.
number
)
world
.
log_in
(
username
=
'robot'
,
password
=
'test'
)
def
check_lti_popup
():
def
check_lti_popup
():
...
...
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