Exemplo n.º 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)
Exemplo n.º 2
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))
Exemplo n.º 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)
Exemplo n.º 4
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.unavailable_content_path))
Exemplo n.º 5
0
def impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Exemplo n.º 6
0
def impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Exemplo n.º 7
0
def step_impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.available_content_path))
Exemplo n.º 8
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))