Example #1
0
def step_impl(context):
    expected = build_url(context,
                         reverse('homepage'),
                         params={
                             'login': True,
                             'next': reverse('update_videos')
                         })
    actual = context.browser.current_url
    assert expected == actual, "Redirected to unexpected url. Expected: {exp}\nActual: {act}".format(
        exp=expected, act=actual)
Example #2
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))
Example #3
0
def step_impl(context):
    expected = build_url(context, reverse('homepage'), params={'login': True, 'next': reverse('update_videos')})
    actual = context.browser.current_url
    assert expected == actual, "Redirected to unexpected url. Expected: {exp}\nActual: {act}".format(exp=expected, act=actual)
Example #4
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.unavailable_content_path))
Example #5
0
def impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Example #6
0
def impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Example #7
0
def step_impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.available_content_path))
Example #8
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))