def test_apply_translator_gate_patches(elevators):
    # Setup
    target = {}

    # Run
    patcher_file._apply_translator_gate_patches(target, elevators)

    # Assert
    assert target == {
        "always_up_gfmc_compound": True,
        "always_up_torvus_temple": True,
        "always_up_great_temple": elevators != LayoutElevators.VANILLA,
    }
def test_apply_translator_gate_patches():
    # Setup
    target = {}
    translator_gates = TranslatorConfiguration(
        {},
        fixed_gfmc_compound=MagicMock(),
        fixed_torvus_temple=MagicMock(),
        fixed_great_temple=MagicMock(),
    )

    # Run
    patcher_file._apply_translator_gate_patches(target, translator_gates)

    # Assert
    assert target == {
        "always_up_gfmc_compound": translator_gates.fixed_gfmc_compound,
        "always_up_torvus_temple": translator_gates.fixed_torvus_temple,
        "always_up_great_temple": translator_gates.fixed_great_temple,
    }