Skip to content

test_eip_7002()

Documentation for tests/prague/eip7002_el_triggerable_withdrawals/test_eip_mainnet.py::test_eip_7002@892e6d1e.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7002_el_triggerable_withdrawals/test_eip_mainnet.py::test_eip_7002 --fork Prague

Test making a withdrawal request.

Source code in tests/prague/eip7002_el_triggerable_withdrawals/test_eip_mainnet.py
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@pytest.mark.parametrize(
    "blocks_withdrawal_requests",
    [
        pytest.param(
            [
                [
                    WithdrawalRequestTransaction(
                        requests=[
                            WithdrawalRequest(
                                validator_pubkey=0x01,
                                amount=0,
                                fee=Spec.get_fee(0),
                            )
                        ],
                    ),
                ],
            ],
            id="single_withdrawal_request",
        ),
    ],
)
def test_eip_7002(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
    blocks: List[Block],
) -> None:
    """Test making a withdrawal request."""
    blockchain_test(
        pre=pre,
        post={},
        blocks=blocks,
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 1 fork.