-
Notifications
You must be signed in to change notification settings - Fork 186
Refactor to #1138 #1141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to #1138 #1141
Conversation
danceratopz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Agree, nicer to have the invalid test cases grouped together.
I verified the fixtures locally.
LGTM. One very minor nit regarding id naming 😆
| correct_order_transactions, | ||
| correct_order + [bytes([fork.max_request_type() + 1])], | ||
| BlockException.INVALID_REQUESTS, | ||
| id="extra_invalid_type_request", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just modify this test id to be more explicit and to better match the test cases removed from tests/prague/eip7685_general_purpose_el_requests/test_request_types.py
| id="extra_invalid_type_request", | |
| id="extra_invalid_type_request_with_no_data", |
In particular, the "no data" case triggers an Engine API error, whereas the with_data_* test cases don't. Makes it easier to filter/target the no data cases if nothing else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes total sense, thanks!
…_withdrawals_consolidations.py Co-authored-by: danceratopz <[email protected]>
…n 1 byte (#1138) * fix(tests): raise `InvalidParams` for requests shorter than 1 byte * Refactor to #1138 (#1141) * refactor(tests): EIP-7685: Add invalid cases * refactor(tests): EIP-7685: Remove redundant `test_request_types.py`, remove unused fixtures * small comment * Update tests/prague/eip7685_general_purpose_el_requests/test_deposits_withdrawals_consolidations.py Co-authored-by: danceratopz <[email protected]> --------- Co-authored-by: danceratopz <[email protected]> --------- Co-authored-by: Mario Vega <[email protected]>
…n 1 byte (ethereum#1138) * fix(tests): raise `InvalidParams` for requests shorter than 1 byte * Refactor to ethereum#1138 (ethereum#1141) * refactor(tests): EIP-7685: Add invalid cases * refactor(tests): EIP-7685: Remove redundant `test_request_types.py`, remove unused fixtures * small comment * Update tests/prague/eip7685_general_purpose_el_requests/test_deposits_withdrawals_consolidations.py Co-authored-by: danceratopz <[email protected]> --------- Co-authored-by: danceratopz <[email protected]> --------- Co-authored-by: Mario Vega <[email protected]>
…n 1 byte (ethereum#1138) * fix(tests): raise `InvalidParams` for requests shorter than 1 byte * Refactor to ethereum#1138 (ethereum#1141) * refactor(tests): EIP-7685: Add invalid cases * refactor(tests): EIP-7685: Remove redundant `test_request_types.py`, remove unused fixtures * small comment * Update tests/prague/eip7685_general_purpose_el_requests/test_deposits_withdrawals_consolidations.py Co-authored-by: danceratopz <[email protected]> --------- Co-authored-by: danceratopz <[email protected]> --------- Co-authored-by: Mario Vega <[email protected]>
Refactor of #1138.
tests/prague/eip7685_general_purpose_el_requests/test_request_types.pytotests/prague/eip7685_general_purpose_el_requests/test_deposits_withdrawals_consolidations.pytests/prague/eip7685_general_purpose_el_requests/test_request_types.pyand the now unused fixtures it depended on.