Skip to content

test_empty_block()

Documentation for tests/benchmark/test_worst_compute.py::test_empty_block@0f7c73a7.

Generate fixtures for these test cases for Prague with:

fill -v tests/benchmark/test_worst_compute.py::test_empty_block --fork Prague

Test running an empty block as a baseline for fixed proving costs.

Source code in tests/benchmark/test_worst_compute.py
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
@pytest.mark.valid_from("Cancun")
def test_empty_block(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
):
    """Test running an empty block as a baseline for fixed proving costs."""
    env = Environment()

    blockchain_test(
        env=env,
        pre=pre,
        post={},
        blocks=[Block(txs=[])],
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Cancun-blockchain_test
...fork_Prague-blockchain_test
...fork_Osaka-blockchain_test