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
940113ef
Commit
940113ef
authored
Jun 28, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed long lines
parent
484e217d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
cms/djangoapps/contentstore/features/common.py
+3
-2
cms/djangoapps/contentstore/features/grading.py
+3
-1
common/djangoapps/terrain/browser.py
+0
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
940113ef
...
...
@@ -156,8 +156,9 @@ def create_a_course():
# Add the user to the instructor group of the course
# so they will have the permissions to see it in studio
course
=
world
.
GroupFactory
.
create
(
name
=
'instructor_MITx/{course_num}/{course_name}'
.
format
(
course_num
=
world
.
scenario_dict
[
'COURSE'
]
.
number
,
course_name
=
world
.
scenario_dict
[
'COURSE'
]
.
display_name
.
replace
(
" "
,
"_"
)))
if
world
.
scenario_dict
[
'USER'
]:
course
=
world
.
GroupFactory
.
create
(
name
=
'instructor_MITx/{}/{}'
.
format
(
world
.
scenario_dict
[
'COURSE'
]
.
number
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
.
replace
(
" "
,
"_"
)))
if
world
.
scenario_dict
.
get
(
'USER'
)
is
None
:
user
=
world
.
scenario_dict
[
'USER'
]
else
:
user
=
get_user_by_email
(
'robot+studio@edx.org'
)
...
...
cms/djangoapps/contentstore/features/grading.py
View file @
940113ef
...
...
@@ -64,7 +64,9 @@ def change_assignment_name(step, old_name, new_name):
@step
(
u'I go back to the main course page'
)
def
main_course_page
(
step
):
main_page_link_css
=
'a[href="/
%
s/
%
s/course/
%
s"]'
%
(
world
.
scenario_dict
[
'COURSE'
]
.
org
,
world
.
scenario_dict
[
'COURSE'
]
.
number
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
.
replace
(
' '
,
'_'
),)
main_page_link_css
=
'a[href="/
%
s/
%
s/course/
%
s"]'
%
(
world
.
scenario_dict
[
'COURSE'
]
.
org
,
world
.
scenario_dict
[
'COURSE'
]
.
number
,
world
.
scenario_dict
[
'COURSE'
]
.
display_name
.
replace
(
' '
,
'_'
),)
world
.
css_click
(
main_page_link_css
)
...
...
common/djangoapps/terrain/browser.py
View file @
940113ef
...
...
@@ -79,7 +79,6 @@ def initial_setup(server):
# Set the browser size to 1280x1024
world
.
browser
.
driver
.
set_window_size
(
1280
,
1024
)
#world.absorb({}, 'scenario_dict')
@before.each_scenario
...
...
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