def i_see_only_the_settings_and_values(step):
    world.verify_all_setting_entries(
        [
            ['Category', "Week 1", True],
            ['Display Name', "Discussion Tag", True],
            ['Subcategory', "Topic-Level Student-Visible Label", True]
        ])
示例#2
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        [DISPLAY_NAME, 'Video', False],
        ['Default Video URL', 'http://youtu.be/_Szu8hVDvgc, , ', False],

        # advanced
        [DISPLAY_NAME, 'Video', False],
        ['Default Timed Transcript', '', False],
        ['Download Transcript Allowed', 'False', False],
        ['Downloadable Transcript URL', '', False],
        ['Show Transcript', 'True', False],
        ['Transcript Languages', '', False],
        ['Upload Handout', '', False],
        ['Video Available on Web Only', 'False', False],
        ['Video Download Allowed', 'False', False],
        ['Video File URLs', '', False],
        ['Video Start Time', '00:00:00', False],
        ['Video Stop Time', '00:00:00', False],
        ['YouTube ID', '_Szu8hVDvgc', False],
        ['YouTube ID for .75x speed', '', False],
        ['YouTube ID for 1.25x speed', '', False],
        ['YouTube ID for 1.5x speed', '', False]
    ]
    world.verify_all_setting_entries(expected_entries)
示例#3
0
def i_see_only_the_html_display_name(step):
    world.verify_all_setting_entries(
        [
            ['Display Name', "Text", False],
            ['Editor', "Visual", False]
        ]
    )
示例#4
0
def i_see_only_the_html_display_name(step):
    world.verify_all_setting_entries(
        [
            ['Display Name', "Text", False],
            ['Editor', "Visual", False]
        ]
    )
示例#5
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        [DISPLAY_NAME, 'Video', False],
        ['Default Video URL', 'http://youtu.be/3_yD_cEKoCk, , ', False],

        # advanced
        [DISPLAY_NAME, 'Video', False],
        ['Default Timed Transcript', '', False],
        ['Download Transcript Allowed', 'False', False],
        ['Downloadable Transcript URL', '', False],
        ['Show Transcript', 'True', False],
        ['Transcript Languages', '', False],
        ['Upload Handout', '', False],
        ['Video Available on Web Only', 'False', False],
        ['Video Download Allowed', 'False', False],
        ['Video File URLs', '', False],
        ['Video Start Time', '00:00:00', False],
        ['Video Stop Time', '00:00:00', False],
        ['YouTube ID', '3_yD_cEKoCk', False],
        ['YouTube ID for .75x speed', '', False],
        ['YouTube ID for 1.25x speed', '', False],
        ['YouTube ID for 1.5x speed', '', False]
    ]
    world.verify_all_setting_entries(expected_entries)
示例#6
0
def i_see_only_the_settings_and_values(step):
    world.verify_all_setting_entries(
        [
            ['Category', "Week 1", True],
            ['Display Name', "Discussion Tag", True],
            ['Subcategory', "Topic-Level Student-Visible Label", True]
        ])
示例#7
0
def i_see_advanced_settings_with_values(step):
    world.verify_all_setting_entries([
        [DISPLAY_NAME, "Blank Common Problem", True],
        [MAXIMUM_ATTEMPTS, "", False],
        [PROBLEM_WEIGHT, "", False],
        [RANDOMIZATION, "Never", False],
        [SHOW_ANSWER, "Finished", False],
    ])
def i_see_only_the_settings_and_values(step):
    world.verify_all_setting_entries(
        [
            ["Category", "Week 1", False],
            ["Display Name", "Discussion", False],
            ["Subcategory", "Topic-Level Student-Visible Label", False],
        ]
    )
示例#9
0
def i_see_the_correct_settings_and_values(step):
    world.verify_all_setting_entries([['Default Speed', 'OEoXaMPEzfM', False],
                                      ['Display Name', 'default', True],
                                      ['Download Track', '', False],
                                      ['Download Video', '', False],
                                      ['Show Captions', 'True', False],
                                      ['Speed: .75x', '', False],
                                      ['Speed: 1.25x', '', False],
                                      ['Speed: 1.5x', '', False]])
示例#10
0
def i_see_five_settings_with_values(step):
    world.verify_all_setting_entries(
        [
            [DISPLAY_NAME, "Blank Common Problem", True],
            [MAXIMUM_ATTEMPTS, "", False],
            [PROBLEM_WEIGHT, "", False],
            [RANDOMIZATION, "Never", False],
            [SHOW_ANSWER, "Finished", False]
        ])
def correct_video_settings(_step):
    world.verify_all_setting_entries(
        [['Display Name', 'Video', False], ['Download Track', '', False],
         ['Download Video', '', False], ['End Time', '0', False],
         ['HTML5 Timed Transcript', '', False],
         ['Show Captions', 'True', False], ['Start Time', '0', False],
         ['Video Sources', '', False], ['Youtube ID', 'OEoXaMPEzfM', False],
         ['Youtube ID for .75x speed', '', False],
         ['Youtube ID for 1.25x speed', '', False],
         ['Youtube ID for 1.5x speed', '', False]])
示例#12
0
def i_see_advanced_settings_with_values(_step):
    world.verify_all_setting_entries([
        [DISPLAY_NAME, "Blank Common Problem", True],
        [MATLAB_API_KEY, "", False],
        [MAXIMUM_ATTEMPTS, "", False],
        [PROBLEM_WEIGHT, "", False],
        [RANDOMIZATION, "Never", False],
        [SHOW_ANSWER, "Finished", False],
        [SHOW_RESET_BUTTON, "False", False],
        [TIMER_BETWEEN_ATTEMPTS, "0", False],
    ])
def i_see_advanced_settings_with_values(step):
    world.verify_all_setting_entries(
        [
            [DISPLAY_NAME, "Blank Common Problem", True],
            [MATLAB_API_KEY, "", False],
            [MAXIMUM_ATTEMPTS, "", False],
            [PROBLEM_WEIGHT, "", False],
            [RANDOMIZATION, "Never", False],
            [SHOW_ANSWER, "Finished", False],
            [TIMER_BETWEEN_ATTEMPTS, "0", False],
        ])
示例#14
0
def correct_video_settings(_step):
    world.verify_all_setting_entries([['Display Name', 'Video', False],
                                      ['Download Track', '', False],
                                      ['Download Video', '', False],
                                      ['End Time', '0', False],
                                      ['HTML5 Subtitles', '', False],
                                      ['Show Captions', 'True', False],
                                      ['Start Time', '0', False],
                                      ['Video Sources', '', False],
                                      ['Youtube ID', 'OEoXaMPEzfM', False],
                                      ['Youtube ID for .75x speed', '', False],
                                      ['Youtube ID for 1.25x speed', '', False],
                                      ['Youtube ID for 1.5x speed', '', False]])
示例#15
0
def correct_video_settings(_step):
    world.verify_all_setting_entries(
        [
            ["Display Name", "Video", False],
            ["Download Track", "", False],
            ["Download Video", "", False],
            ["End Time", "0", False],
            ["HTML5 Timed Transcript", "", False],
            ["Show Captions", "True", False],
            ["Start Time", "0", False],
            ["Video Sources", "", False],
            ["Youtube ID", "OEoXaMPEzfM", False],
            ["Youtube ID for .75x speed", "", False],
            ["Youtube ID for 1.25x speed", "", False],
            ["Youtube ID for 1.5x speed", "", False],
        ]
    )
示例#16
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        ["Display Name", "Video", False],
        ["Video URL", "http://youtu.be/OEoXaMPEzfM, , ", False],
        # advanced
        ["Display Name", "Video", False],
        ["Download Transcript", "", False],
        ["Download Video", "", False],
        ["End Time", "00:00:00", False],
        ["HTML5 Transcript", "", False],
        ["Show Transcript", "True", False],
        ["Start Time", "00:00:00", False],
        ["Video Sources", "", False],
        ["Youtube ID", "OEoXaMPEzfM", False],
        ["Youtube ID for .75x speed", "", False],
        ["Youtube ID for 1.25x speed", "", False],
        ["Youtube ID for 1.5x speed", "", False],
    ]
    world.verify_all_setting_entries(expected_entries)
示例#17
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        ['Display Name', 'Video', False],
        ['Video URL', 'http://youtu.be/OEoXaMPEzfM, , ', False],

        # advanced
        ['Display Name', 'Video', False],
        ['Download Transcript', '', False],
        ['Download Video', '', False],
        ['End Time', '0', False],
        ['HTML5 Transcript', '', False],
        ['Show Transcript', 'True', False],
        ['Start Time', '0', False],
        ['Video Sources', '', False],
        ['Youtube ID', 'OEoXaMPEzfM', False],
        ['Youtube ID for .75x speed', '', False],
        ['Youtube ID for 1.25x speed', '', False],
        ['Youtube ID for 1.5x speed', '', False]
    ]
    world.verify_all_setting_entries(expected_entries)
示例#18
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        ['Display Name', 'Video', False],
        ['Video URL', 'http://youtu.be/OEoXaMPEzfM, , ', False],

        # advanced
        ['Display Name', 'Video', False],
        ['Download Transcript', '', False],
        ['Download Video', '', False],
        ['End Time', '00:00:00', False],
        ['HTML5 Transcript', '', False],
        ['Show Transcript', 'True', False],
        ['Start Time', '00:00:00', False],
        ['Video Sources', '', False],
        ['Youtube ID', 'OEoXaMPEzfM', False],
        ['Youtube ID for .75x speed', '', False],
        ['Youtube ID for 1.25x speed', '', False],
        ['Youtube ID for 1.5x speed', '', False]
    ]
    world.verify_all_setting_entries(expected_entries)
示例#19
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        ['Display Name', 'Video', False],
        ['Video URL', 'http://mooc.diandiyun.com/c4x/staff/cs005/asset/FZ1.mp4, , ', False],

        # advanced
        ['Display Name', 'Video', False],
        ['Download Transcript', '', False],
        ['End Time', '00:00:00', False],
        ['Start Time', '00:00:00', False],
        ['Transcript (primary)', '', False],
        ['Transcript Display', 'True', False],
        ['Transcript Download Allowed', 'False', False],
        ['Transcript Translations', '', False],
        ['Video Download Allowed', 'False', False],
        ['Video Sources', '', False],
        ['Youtube ID', 'OEoXaMPEzfM', False],
        ['Youtube ID for .75x speed', '', False],
        ['Youtube ID for 1.25x speed', '', False],
        ['Youtube ID for 1.5x speed', '', False]
    ]
    world.verify_all_setting_entries(expected_entries)
示例#20
0
def correct_video_settings(_step):
    expected_entries = [
        # basic
        ['Display Name', 'Video', False],
        ['Video URL', 'http://youtu.be/OEoXaMPEzfM, , ', False],

        # advanced
        ['Display Name', 'Video', False],
        ['Download Transcript', '', False],
        ['End Time', '00:00:00', False],
        ['Start Time', '00:00:00', False],
        ['Transcript (primary)', '', False],
        ['Transcript Display', 'True', False],
        ['Transcript Download Allowed', 'False', False],
        ['Transcript Translations', '', False],
        ['Upload Handout', '', False],
        ['Video Download Allowed', 'False', False],
        ['Video Sources', '', False],
        ['Youtube ID', 'OEoXaMPEzfM', False],
        ['Youtube ID for .75x speed', '', False],
        ['Youtube ID for 1.25x speed', '', False],
        ['Youtube ID for 1.5x speed', '', False]
    ]
    world.verify_all_setting_entries(expected_entries)
示例#21
0
def i_see_only_the_video_display_name(step):
    world.verify_all_setting_entries([['Display Name', "default", True]])
示例#22
0
def i_see_only_the_settings_and_values(step):
    world.verify_all_setting_entries([['Display Name', "Dyskusja", False],
                                      ['Category', "Tydzień 1", False],
                                      ['Subcategory', "Temat dyskusji",
                                       False]])
def i_see_only_the_html_display_name(step):
    world.verify_all_setting_entries([["Display Name", "Text", False]])
示例#24
0
def i_see_only_the_html_display_name(step):
    world.verify_all_setting_entries([['Display Name', "Blank HTML Page", True]])