-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
qa: Use named args in validation acceptance tests #14101
Conversation
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e 's/(test_witness_block|test_transaction_acceptance)\((self\.nodes\[.\])\.rpc/\1(\2/g' test/functional/p2p_segwit.py -END VERIFY SCRIPT-
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e "s/sync_blocks\((.*?), (True|False), (1.?), /sync_blocks(\1, success=\2, reject_code=\3, reject_reason=/g" ./test/functional/feature_block.py -END VERIFY SCRIPT-
fa910fd
to
fa1c0be
Compare
fa1c0be
to
fa782a3
Compare
Note to reviewers: This pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
utACK fa782a3. nit, could rename the following bitcoin/test/functional/p2p_segwit.py Line 122 in 4e9a6f8
bitcoin/test/functional/p2p_segwit.py Line 138 in 4e9a6f8
|
Concept ACK Clearly improves code readability |
utACK fa782a3 |
fa782a3 qa: Use named args in some tests (MarcoFalke) b4d3309 scripted-diff: Use named arguments in feature_block (MarcoFalke) 749ba35 scripted-diff: Pass node into p2p_segwit acceptance tests (MarcoFalke) Pull request description: It is confusing to use a list of arguments such as `False, False, 16, ...` where it is unclear what each of them means. Run some scripted diffs to put meaning to them. Tree-SHA512: d768df2375ea3c77145ebb1bf4c2d690581a379031449ded7ae160022d975eb13890aa8c6a44a5eebda8791cb2910a599326e431af76ed9e60afe1d182ada65c
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e 's/(test_witness_block|test_transaction_acceptance)\((self\.nodes\[.\])\.rpc/\1(\2/g' test/functional/p2p_segwit.py -END VERIFY SCRIPT- Github-Pull: bitcoin#14101 Rebased-From: 749ba35
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e "s/sync_blocks\((.*?), (True|False), (1.?), /sync_blocks(\1, success=\2, reject_code=\3, reject_reason=/g" ./test/functional/feature_block.py -END VERIFY SCRIPT- Github-Pull: bitcoin#14101 Rebased-From: b4d3309
Github-Pull: bitcoin#14101 Rebased-From: fa782a3
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e 's/(test_witness_block|test_transaction_acceptance)\((self\.nodes\[.\])\.rpc/\1(\2/g' test/functional/p2p_segwit.py -END VERIFY SCRIPT- Github-Pull: bitcoin#14101 Rebased-From: 749ba35
-BEGIN VERIFY SCRIPT- sed -i --regexp-extended -e "s/sync_blocks\((.*?), (True|False), (1.?), /sync_blocks(\1, success=\2, reject_code=\3, reject_reason=/g" ./test/functional/feature_block.py -END VERIFY SCRIPT- Github-Pull: bitcoin#14101 Rebased-From: b4d3309
Github-Pull: bitcoin#14101 Rebased-From: fa782a3
fa782a3 qa: Use named args in some tests (MarcoFalke) b4d3309 scripted-diff: Use named arguments in feature_block (MarcoFalke) 749ba35 scripted-diff: Pass node into p2p_segwit acceptance tests (MarcoFalke) Pull request description: It is confusing to use a list of arguments such as `False, False, 16, ...` where it is unclear what each of them means. Run some scripted diffs to put meaning to them. Tree-SHA512: d768df2375ea3c77145ebb1bf4c2d690581a379031449ded7ae160022d975eb13890aa8c6a44a5eebda8791cb2910a599326e431af76ed9e60afe1d182ada65c # Conflicts: # test/functional/feature_block.py # test/functional/mining_basic.py # test/functional/p2p_segwit.py
fa782a3 qa: Use named args in some tests (MarcoFalke) b4d3309 scripted-diff: Use named arguments in feature_block (MarcoFalke) 749ba35 scripted-diff: Pass node into p2p_segwit acceptance tests (MarcoFalke) Pull request description: It is confusing to use a list of arguments such as `False, False, 16, ...` where it is unclear what each of them means. Run some scripted diffs to put meaning to them. Tree-SHA512: d768df2375ea3c77145ebb1bf4c2d690581a379031449ded7ae160022d975eb13890aa8c6a44a5eebda8791cb2910a599326e431af76ed9e60afe1d182ada65c # Conflicts: # test/functional/feature_block.py # test/functional/mining_basic.py # test/functional/p2p_segwit.py
fa782a3 qa: Use named args in some tests (MarcoFalke) b4d3309 scripted-diff: Use named arguments in feature_block (MarcoFalke) 749ba35 scripted-diff: Pass node into p2p_segwit acceptance tests (MarcoFalke) Pull request description: It is confusing to use a list of arguments such as `False, False, 16, ...` where it is unclear what each of them means. Run some scripted diffs to put meaning to them. Tree-SHA512: d768df2375ea3c77145ebb1bf4c2d690581a379031449ded7ae160022d975eb13890aa8c6a44a5eebda8791cb2910a599326e431af76ed9e60afe1d182ada65c # Conflicts: # test/functional/feature_block.py # test/functional/mining_basic.py # test/functional/p2p_segwit.py
It is confusing to use a list of arguments such as
False, False, 16, ...
where it is unclear what each of them means.Run some scripted diffs to put meaning to them.