Пример #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)
Пример #2
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))
Пример #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)
Пример #4
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.unavailable_content_path))
Пример #5
0
def impl(context):
    context.browser.get(build_url(context, reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Пример #6
0
def go_to_manage_page(context):
    url = reverse("zone_redirect")
    context.browser.get(build_url(context, url))
Пример #7
0
def go_to_homepage(context):
    context.browser.get(build_url(context, reverse("homepage")))
Пример #8
0
def impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.video.path))
    wait_for_video_player_ready(context)
Пример #9
0
def step_impl(context):
    context.browser.get(
        build_url(context,
                  reverse("learn") + context.available_content_path))
Пример #10
0
def go_to_manage_page(context):
    url = reverse("zone_redirect")
    context.browser.get(build_url(context, url))
Пример #11
0
def step_impl(context):
    context.browser.get(build_url(context, reverse("update_videos")))