Commit eceb8318 by Usman Khalid

Merge pull request #3833 from edx/usman/lms2738-verify-student-urls

Added trailing slashes to verify_student app urls.
parents 3aa45989 1ecfac3f
...@@ -5,5 +5,5 @@ from course_modes import views ...@@ -5,5 +5,5 @@ from course_modes import views
urlpatterns = patterns( urlpatterns = patterns(
'', '',
url(r'^choose/(?P<course_id>[^/]+/[^/]+/[^/]+)$', views.ChooseModeView.as_view(), name="course_modes_choose"), url(r'^choose/(?P<course_id>[^/]+/[^/]+/[^/]+)/$', views.ChooseModeView.as_view(), name="course_modes_choose"),
) )
...@@ -281,7 +281,7 @@ def see_that_i_am_on_the_verified_track(step): ...@@ -281,7 +281,7 @@ def see_that_i_am_on_the_verified_track(step):
@step(u'I leave the flow and return$') @step(u'I leave the flow and return$')
def leave_the_flow_and_return(step): def leave_the_flow_and_return(step):
world.visit('verify_student/verified/edx/999/Certificates') world.visit('verify_student/verified/edx/999/Certificates/')
@step(u'I am at the verified page$') @step(u'I am at the verified page$')
......
...@@ -5,19 +5,19 @@ from verify_student import views ...@@ -5,19 +5,19 @@ from verify_student import views
urlpatterns = patterns( urlpatterns = patterns(
'', '',
url( url(
r'^show_requirements/(?P<course_id>[^/]+/[^/]+/[^/]+)$', r'^show_requirements/(?P<course_id>[^/]+/[^/]+/[^/]+)/$',
views.show_requirements, views.show_requirements,
name="verify_student_show_requirements" name="verify_student_show_requirements"
), ),
url( url(
r'^verify/(?P<course_id>[^/]+/[^/]+/[^/]+)$', r'^verify/(?P<course_id>[^/]+/[^/]+/[^/]+)/$',
views.VerifyView.as_view(), # pylint: disable=E1120 views.VerifyView.as_view(), # pylint: disable=E1120
name="verify_student_verify" name="verify_student_verify"
), ),
url( url(
r'^verified/(?P<course_id>[^/]+/[^/]+/[^/]+)$', r'^verified/(?P<course_id>[^/]+/[^/]+/[^/]+)/$',
views.VerifiedView.as_view(), views.VerifiedView.as_view(),
name="verify_student_verified" name="verify_student_verified"
), ),
...@@ -41,7 +41,7 @@ urlpatterns = patterns( ...@@ -41,7 +41,7 @@ urlpatterns = patterns(
), ),
url( url(
r'^midcourse_reverify/(?P<course_id>[^/]+/[^/]+/[^/]+)$', r'^midcourse_reverify/(?P<course_id>[^/]+/[^/]+/[^/]+)/$',
views.MidCourseReverifyView.as_view(), # pylint: disable=E1120 views.MidCourseReverifyView.as_view(), # pylint: disable=E1120
name="verify_student_midcourse_reverify" name="verify_student_midcourse_reverify"
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment