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
Check untyped defs in all integration tests except #5129
Conversation
the ones in `integration.network`.
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.
Nice, we're getting close.
Fine to merge when the tests pass.
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.
Looks good. Just asked for some changes. But tests fail for probably unrelated error
code = app0.raiden.rpc_client.web3.eth.getCode( | ||
to_checksum_address(token_network_address), block_number | ||
) | ||
code = app0.raiden.rpc_client.web3.eth.getCode(token_network_address, block_number) |
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.
nitpick use kwargs
app0.raiden.rpc_client, | ||
contract_manager=contract_manager, | ||
constructor_arguments=(token_amount, 2, "raiden", "Rd"), | ||
new_token_address = TokenAddress( |
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.
Why not create a helper function for this deployment which also returns the proper type?
timeout=network_wait * number_of_nodes, | ||
) | ||
# stop app1 - the test uses token_network_contract now | ||
app1.stop() | ||
token_network_contract = app1.raiden.proxy_manager.token_network(token_network_address) | ||
empty_balance_proof = BalanceProof( | ||
channel_identifier=channel_identifier, | ||
token_network_address=to_checksum_address(token_network_contract.address), | ||
token_network_address=TokenNetworkAddress(token_network_contract.address), |
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.
Nice find. I had to go check the code to make sure that you did not make a mistake here. How come the test was passing before?
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.
Probably because they still got converted into the desired format everywhere where it is actually used (pack_data
, etc.). I didn't check in detail.
deploy_client=app1.raiden.rpc_client, | ||
contract_manager=contract_manager, | ||
constructor_arguments=(token_amount, 2, "raiden", "Rd"), | ||
token_address = TokenAddress( |
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.
same as above for the helper function here and in other parts in this file
We need one in multiple tests, so this is a nice way to make the tests more concise.
Codecov Report
@@ Coverage Diff @@
## develop #5129 +/- ##
==========================================
Coverage ? 80.63%
==========================================
Files ? 120
Lines ? 14776
Branches ? 2296
==========================================
Hits ? 11914
Misses ? 2178
Partials ? 684 Continue to review full report at Codecov.
|
the ones in
integration.network
.PR review check list
Quality check list that cannot be automatically verified.