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@ffe48572.
Generate fixtures for these test cases for Bogota with:
fill -v tests/osaka/eip7918_blob_reserve_price/test_blob_reserve_price_with_bpo_transitions.py::test_reserve_price_at_transition --fork Bogota
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
| @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()
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 11 parametrized test cases across 6 forks.