Пример #1
0
def test_millionaire_clone_gun_wo_bow(item_set, cosmic_status,
                                      expected_clone_gun_wo_cosmic,
                                      expected_millionaire):
    run_state = RunState()
    run_state.cosmic_stepper = FakeStepper(cosmic_status)
    run_state.update_millionaire(State(), Inventory(), item_set)

    assert run_state.clone_gun_wo_cosmic == expected_clone_gun_wo_cosmic

    is_millionaire = Label.MILLIONAIRE in run_state.run_label._set
    assert is_millionaire == expected_millionaire
Пример #2
0
def test_update_terminus(
    world,
    win_state,
    final_death,
    had_ankh,
    sunken_status,
    eggplant_status,
    cosmic_status,
    expected_terminus,
):
    run_state = RunState()
    run_state.final_death = final_death
    run_state.had_ankh = had_ankh
    run_state.sunken_chain_status = sunken_status
    run_state.eggplant_stepper = FakeStepper(eggplant_status)
    run_state.cosmic_stepper = FakeStepper(cosmic_status)

    game_state = State(world=world, win_state=win_state)
    run_state.update_terminus(game_state)

    assert run_state.run_label._terminus == expected_terminus