Exemple #1
0
def test_edit_menu_mod(editor: PresetEditor,
                       initial_layout_configuration_params: dict,
                       default_echoes_configuration, menu_mod):
    # Setup
    editor._configuration = dataclasses.replace(
        default_echoes_configuration, **initial_layout_configuration_params)
    editor._nested_autosave_level = 1

    # Run
    initial_layout_configuration_params["menu_mod"] = menu_mod
    editor.set_configuration_field("menu_mod", menu_mod)

    # Assert
    assert editor.configuration == dataclasses.replace(
        default_echoes_configuration, **initial_layout_configuration_params)
Exemple #2
0
def test_edit_skip_final_bosses(editor: PresetEditor,
                                initial_layout_configuration_params: dict,
                                default_layout_configuration,
                                skip_final_bosses):
    # Setup
    editor._configuration = dataclasses.replace(
        default_layout_configuration, **initial_layout_configuration_params)
    editor._nested_autosave_level = 1

    # Run
    initial_layout_configuration_params[
        "skip_final_bosses"] = skip_final_bosses
    editor.set_configuration_field("skip_final_bosses", skip_final_bosses)

    # Assert
    assert editor.configuration == dataclasses.replace(
        default_layout_configuration, **initial_layout_configuration_params)