From fc899ab116206ad64381f2abefb88bc99dbb4999 Mon Sep 17 00:00:00 2001 From: JonahStanley Date: Fri, 16 Aug 2013 15:30:35 -0400 Subject: [PATCH] Stylistic change and factored out method to common --- lms/djangoapps/courseware/features/common.py | 7 +++++++ lms/djangoapps/courseware/features/help.py | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lms/djangoapps/courseware/features/common.py b/lms/djangoapps/courseware/features/common.py index bf58cbc6fe..b69dd4c866 100644 --- a/lms/djangoapps/courseware/features/common.py +++ b/lms/djangoapps/courseware/features/common.py @@ -66,6 +66,13 @@ def add_tab_to_course(_step, course, extra_tab_name): display_name=str(extra_tab_name)) +@step(u'I am in a course$') +def go_into_course(step): + step.given('I am registered for the course "6.002x"') + step.given('And I am logged in') + step.given('And I click on View Courseware') + + def course_id(course_num): return "%s/%s/%s" % (world.scenario_dict['COURSE'].org, course_num, world.scenario_dict['COURSE'].display_name.replace(" ", "_")) diff --git a/lms/djangoapps/courseware/features/help.py b/lms/djangoapps/courseware/features/help.py index a426caa910..7691328f00 100644 --- a/lms/djangoapps/courseware/features/help.py +++ b/lms/djangoapps/courseware/features/help.py @@ -36,13 +36,6 @@ def see_confirmation(step): assert world.browser.evaluate_script("$('input[value=\"Submit\"]').attr('disabled')") == 'disabled' -@step(u'I am in a course') -def go_into_course(step): - step.given('I am registered for the course "6.002x"') - step.given('And I am logged in') - step.given('And I click on View Courseware') - - def fill_field(name, info): def fill_info(): form_css = 'form.feedback_form'