Skip to content

Commit c4bb1fa

Browse files
committed
fix(checklists): update test markers to use correct checklist IDs
Update test files to use the correct checklist IDs that match the template: - Change 'new_precompile' prefix to 'precompile' - This fixes mkdocs build warnings about missing checklist items The checklist template uses 'precompile/test/*' IDs but tests were using 'new_precompile/test/*' IDs, causing template lookup failures during documentation generation. Also add missing docstrings to fix linting errors.
1 parent 602e7ef commit c4bb1fa

File tree

5 files changed

+19
-17
lines changed

5 files changed

+19
-17
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Hive engine test consumer plugin."""
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Hive simulators reorganization consumer plugin."""

tests/osaka/eip7951_p256verify_precompiles/test_p256verify.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
# Source: https://github.com/C2SP/wycheproof/blob/main/testvectors/ecdsa_secp256r1_sha256_test.json
3232
)
3333
@pytest.mark.parametrize("precompile_address", [Spec.P256VERIFY], ids=[""])
34-
@pytest.mark.eip_checklist("new_precompile/test/call_contexts/normal")
35-
@pytest.mark.eip_checklist("new_precompile/test/inputs/valid")
34+
@pytest.mark.eip_checklist("precompile/test/call_contexts/normal")
35+
@pytest.mark.eip_checklist("precompile/test/inputs/valid")
3636
def test_valid(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transaction):
3737
"""Test P256Verify precompile."""
3838
state_test(env=Environment(), pre=pre, post=post, tx=tx)
@@ -94,13 +94,13 @@ def test_valid(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transact
9494
)
9595
@pytest.mark.parametrize("expected_output", [Spec.INVALID_RETURN_VALUE], ids=[""])
9696
@pytest.mark.parametrize("precompile_address", [Spec.P256VERIFY], ids=[""])
97-
@pytest.mark.eip_checklist("new_precompile/test/inputs/all_zeros")
98-
@pytest.mark.eip_checklist("new_precompile/test/inputs/invalid")
99-
@pytest.mark.eip_checklist("new_precompile/test/inputs/invalid/crypto")
100-
@pytest.mark.eip_checklist("new_precompile/test/inputs/invalid/corrupted")
101-
@pytest.mark.eip_checklist("new_precompile/test/input_lengths/static/correct")
102-
@pytest.mark.eip_checklist("new_precompile/test/input_lengths/static/too_short")
103-
@pytest.mark.eip_checklist("new_precompile/test/input_lengths/static/too_long")
97+
@pytest.mark.eip_checklist("precompile/test/inputs/all_zeros")
98+
@pytest.mark.eip_checklist("precompile/test/inputs/invalid")
99+
@pytest.mark.eip_checklist("precompile/test/inputs/invalid/crypto")
100+
@pytest.mark.eip_checklist("precompile/test/inputs/invalid/corrupted")
101+
@pytest.mark.eip_checklist("precompile/test/input_lengths/static/correct")
102+
@pytest.mark.eip_checklist("precompile/test/input_lengths/static/too_short")
103+
@pytest.mark.eip_checklist("precompile/test/input_lengths/static/too_long")
104104
def test_invalid(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transaction):
105105
"""Negative tests for the P256VERIFY precompile."""
106106
state_test(env=Environment(), pre=pre, post=post, tx=tx)
@@ -126,8 +126,8 @@ def test_invalid(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transa
126126
],
127127
)
128128
@pytest.mark.parametrize("precompile_address", [Spec.P256VERIFY], ids=[""])
129-
@pytest.mark.eip_checklist("new_precompile/test/gas_usage/constant/exact")
130-
@pytest.mark.eip_checklist("new_precompile/test/gas_usage/constant/oog")
129+
@pytest.mark.eip_checklist("precompile/test/gas_usage/constant/exact")
130+
@pytest.mark.eip_checklist("precompile/test/gas_usage/constant/oog")
131131
def test_gas(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transaction):
132132
"""Test P256Verify precompile gas requirements."""
133133
state_test(env=Environment(), pre=pre, post=post, tx=tx)
@@ -152,9 +152,9 @@ def test_gas(state_test: StateTestFiller, pre: Alloc, post: dict, tx: Transactio
152152
],
153153
)
154154
@pytest.mark.parametrize("precompile_address", [Spec.P256VERIFY], ids=[""])
155-
@pytest.mark.eip_checklist("new_precompile/test/call_contexts/delegate")
156-
@pytest.mark.eip_checklist("new_precompile/test/call_contexts/static")
157-
@pytest.mark.eip_checklist("new_precompile/test/call_contexts/callcode")
155+
@pytest.mark.eip_checklist("precompile/test/call_contexts/delegate")
156+
@pytest.mark.eip_checklist("precompile/test/call_contexts/static")
157+
@pytest.mark.eip_checklist("precompile/test/call_contexts/callcode")
158158
def test_call_types(
159159
state_test: StateTestFiller,
160160
pre: Alloc,
@@ -176,7 +176,7 @@ def test_call_types(
176176
),
177177
],
178178
)
179-
@pytest.mark.eip_checklist("new_precompile/test/call_contexts/tx_entry")
179+
@pytest.mark.eip_checklist("precompile/test/call_contexts/tx_entry")
180180
def test_precompile_as_tx_entry_point(
181181
state_test: StateTestFiller,
182182
pre: Alloc,

tests/osaka/eip7951_p256verify_precompiles/test_p256verify_before_fork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
)
2929
@pytest.mark.parametrize("expected_output,call_succeeds", [pytest.param(b"", True, id="")])
30-
@pytest.mark.eip_checklist("new_precompile/test/fork_transition/before/invalid_input")
30+
@pytest.mark.eip_checklist("precompile/test/fork_transition/before/invalid_input")
3131
def test_precompile_before_fork(
3232
state_test: StateTestFiller,
3333
pre: Alloc,

tests/prague/eip7702_set_code_tx/test_set_code_txs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,7 @@ def test_set_code_to_log(
25222522

25232523
@pytest.mark.with_all_call_opcodes
25242524
@pytest.mark.with_all_precompiles
2525-
@pytest.mark.eip_checklist("new_precompile/test/call_contexts/set_code", eips=[7951])
2525+
@pytest.mark.eip_checklist("precompile/test/call_contexts/set_code", eips=[7951])
25262526
def test_set_code_to_precompile(
25272527
state_test: StateTestFiller,
25282528
pre: Alloc,

0 commit comments

Comments
 (0)