Skip to content

test_valid_multi_type_requests()

Documentation for tests/prague/eip7685_general_purpose_el_requests/test_multi_type_requests.py::test_valid_multi_type_requests@2867859a.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/prague/eip7685_general_purpose_el_requests/test_multi_type_requests.py::test_valid_multi_type_requests --fork Amsterdam

Test valid combinations of every request type in the same block, from EOAs and from relay contracts, including per-type maximums.

Source code in tests/prague/eip7685_general_purpose_el_requests/test_multi_type_requests.py
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
@pytest.mark.parametrize_by_fork("requests", get_fork_permutations)
@pytest.mark.eels_base_coverage
def test_valid_multi_type_requests(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
    blocks: List[Block],
) -> None:
    """
    Test valid combinations of every request type in the same block, from
    EOAs and from relay contracts, including per-type maximums.
    """
    blockchain_test(
        genesis_environment=Environment(
            # Per-type maximums exceed the default block gas limit.
            gas_limit=500_000_000
        ),
        pre=pre,
        post={},
        blocks=blocks,
    )

Parametrized Test Cases

This test generates 362 parametrized test cases across 3 forks.