-
Notifications
You must be signed in to change notification settings - Fork 47
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
Structure improvement functional tests #309
Conversation
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.
Overall looks great, I successfully ran things locally! Just some minor comments, mostly documentation spell
Like suggested by @jaoleal, started to lint some codes (added some docstrings and did some changes on relevant warnings that the linter has accused). |
Nice, when the work is complete, could you squash all the commits into expressive one(s) ? |
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.
29a3958
to
10ca7d5
Compare
Changed a little of code in test_framework.py (and example_test.py and restart.py) at |
@qlrd I think you can squash now, and I'll make a full review. Also, this needs rebase |
@jaoleal, @Davidson-Souza i think it's done |
@qlrd you have a conflict with tests/example_test.py. A rebase should fix it |
…ition made on issue#252 defined python 3.12 as minimum version for functional tests
changed example_test I: added assertions at run_test changed example_test II: added set_params method changed restart: applied the main call at the end of file changed run_tests: flexibilized it for individual tests modified pyproject.toml I: added individual test tasks (example-test, restart-test) modified pyproject.toml II: defined tests task as a sequence of individual tests linted tests/tests_framework/{utreexod, floresta_rpc, test_framework, secp256k1, electrum_client, mock_rpc, key, bitcoin}.py changed floresta_rpc I: diminished the number of arguments of FlorestaRPC changed floresta_rpc II: created a default value REGTEST_RPC_SERVER changed test_framework I: create class FlorestaTestMetaClass changed test_framework II: renamed the class as FlorestaTestFramework changed test_framework III: modified run_node method due to changes on tests/tests_framework/floresta.py changed test_framework IV: added methods (set_test_params, add_node_settings, get_node_settings) changed secp256k1 I: disabled linter on some lines changed secp256k1 II: moved to tests/test_framework/crypto to comply with definition of modules in key.py changed bitcoin I: added methods (dsha256, read_compact_size method, get_merkle_root method, Transaction.deserialize) changed bitcoin II: modified Block.get_merkle_root
ACK 3fdb8c0 |
What is the purpose of this pull request?
In summary, create a python structure with a
pyproject.toml
file to:poetry
and its dependencies;black
;pylint
;poethepoet
(allowing better management for when function tests increase).