Skip to content

test_system_contract_errors()

Documentation for tests/amsterdam/eip8282_builder_execution_requests/test_modified_builder_contract.py::test_system_contract_errors@2867859a.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/amsterdam/eip8282_builder_execution_requests/test_modified_builder_contract.py::test_system_contract_errors --fork Amsterdam

Test system contract raising different errors when called by the system account at the end of the block execution.

To see the list of generated tests, please refer to the generate_system_contract_error_test decorator definition.

Source code in tests/amsterdam/eip8282_builder_execution_requests/test_modified_builder_contract.py
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
@pytest.mark.parametrize(
    "system_contract",
    [
        pytest.param(
            Address(Spec.BUILDER_DEPOSIT_CONTRACT_ADDRESS),
            id="builder_deposit_contract",
        ),
        pytest.param(
            Address(Spec.BUILDER_EXIT_CONTRACT_ADDRESS),
            id="builder_exit_contract",
        ),
    ],
)
@generate_system_contract_error_test(  # type: ignore[arg-type]
    max_gas_limit=Spec.SYSTEM_CALL_GAS_LIMIT,
)
@pytest.mark.eels_base_coverage
def test_system_contract_errors() -> None:
    """
    Test system contract raising different errors when called by the system
    account at the end of the block execution.

    To see the list of generated tests, please refer to the
    `generate_system_contract_error_test` decorator definition.
    """
    pass

Parametrized Test Cases

This test generates 8 parametrized test cases across 1 fork.