Skip to content

test_reserve_price_at_transition()

Documentation for tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo_transitions.py::test_reserve_price_at_transition@21507778.

Generate fixtures for these test cases for BPO2 with:

fill -v tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo_transitions.py::test_reserve_price_at_transition --fork BPO2

Test reserve price mechanism across various block base fee and excess blob gas scenarios.

Source code in tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo_transitions.py
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
@pytest.mark.parametrize_by_fork(
    [
        "parent_base_fee_per_gas",
        "parent_excess_blob_gas",
        "parent_blob_count",
        "transition_block_base_fee_per_gas",
        "transition_block_blob_count",
        "transition_block_expected_excess_blob_gas",
    ],
    get_fork_scenarios,
)
@pytest.mark.valid_at_transition_to("Osaka", subsequent_forks=True)
@pytest.mark.valid_for_bpo_forks()
@pytest.mark.slow()
def test_reserve_price_at_transition(
    blockchain_test: BlockchainTestFiller,
    pre: Alloc,
    parent_block: Block,
    transition_block: Block,
    env: Environment,
) -> None:
    """
    Test reserve price mechanism across various block base fee and excess blob
    gas scenarios.
    """
    blockchain_test(
        pre=pre,
        post={},
        blocks=[parent_block, transition_block],
        genesis_environment=env,
    )

Parametrized Test Cases

This test generates 5 parametrized test cases across 2 forks.