Skip to content

test_system_contract_errors()

Documentation for tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py::test_system_contract_errors@ffe48572.

Generate fixtures for these test cases for Bogota with:

fill -v tests/prague/eip7251_consolidations/test_modified_consolidation_contract.py::test_system_contract_errors --fork Bogota

Test consolidation 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/prague/eip7251_consolidations/test_modified_consolidation_contract.py
@pytest.mark.parametrize(
    "system_contract",
    [ConsolidationRequest.system_contract_address],
)
@generate_system_contract_error_test()  # type: ignore[arg-type]
def test_system_contract_errors() -> None:
    """
    Test consolidation 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 4 parametrized test cases across 4 forks.