Changed the other % to format

This commit is contained in:
JonahStanley
2013-06-12 13:36:46 -04:00
parent 6d686dd9f6
commit 3c43dbb26f
2 changed files with 2 additions and 2 deletions

View File

@@ -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()

View File

@@ -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)