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
3c43dbb2
Commit
3c43dbb2
authored
Jun 12, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the other % to format
parent
6d686dd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cms/djangoapps/contentstore/features/common.py
+1
-1
cms/djangoapps/contentstore/features/course-team.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
3c43dbb2
...
...
@@ -113,7 +113,7 @@ 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
g
=
world
.
GroupFactory
.
create
(
name
=
'instructor_MITx/
%
s/
%
s'
%
(
COURSE_NUM
,
COURSE_NAME
.
replace
(
" "
,
"_"
),
))
g
=
world
.
GroupFactory
.
create
(
name
=
'instructor_MITx/
{course_num}/{course_name}'
.
format
(
course_num
=
COURSE_NUM
,
course_name
=
COURSE_NAME
.
replace
(
" "
,
"_"
)
))
u
=
get_user_by_email
(
'robot+studio@edx.org'
)
u
.
groups
.
add
(
g
)
u
.
save
()
...
...
cms/djangoapps/contentstore/features/course-team.py
View file @
3c43dbb2
...
...
@@ -35,7 +35,7 @@ def add_other_user(step, name):
@step
(
u'I delete "([^"]*)" from the course team'
)
def
delete_other_user
(
step
,
name
):
to_delete_css
=
'.remove-user[data-id="{name}{extension}"]'
.
format
(
name
=
name
,
extension
=
EMAIL_EXTENSION
,
)
to_delete_css
=
'.remove-user[data-id="{name}{extension}"]'
.
format
(
name
=
name
,
extension
=
EMAIL_EXTENSION
)
world
.
css_click
(
to_delete_css
)
...
...
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