Skip to content

test_eip_7251()

Documentation for tests/prague/eip7251_consolidations/test_eip_mainnet.py::test_eip_7251@7b8124a7.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7251_consolidations/test_eip_mainnet.py::test_eip_7251 --fork Prague

Test making a consolidation request.

Source code in tests/prague/eip7251_consolidations/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_consolidation_requests",
    [
        pytest.param(
            [
                [
                    ConsolidationRequestTransaction(
                        requests=[
                            ConsolidationRequest(
                                source_pubkey=0x01,
                                target_pubkey=0x02,
                                fee=Spec.get_fee(0),
                            )
                        ],
                    ),
                ],
            ],
            id="single_consolidation_request",
        ),
    ],
)
def test_eip_7251(
    blockchain_test: BlockchainTestFiller,
    blocks: List[Block],
    pre: Alloc,
) -> None:
    """Test making a consolidation request."""
    blockchain_test(
        pre=pre,
        post={},
        blocks=blocks,
    )

Parametrized Test Cases

This test generates 1 parametrized test case across 1 fork.