-
Notifications
You must be signed in to change notification settings - Fork 32
add tests for PythClient and PythAccount #11
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
Conversation
assert ratelimit._get_overall_interval() == 1.0 | ||
assert ratelimit._get_method_interval() == 1.0 | ||
assert ratelimit._get_connection_interval() == 1.0 | ||
|
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.
Outstanding, thanks!
# 1) these values are not expected to be mutated | ||
# 2) these values are used in get_account_info_resp() and get_program_accounts_resp() | ||
# and so if they are passed in as fixtures, the functions will complain for the args | ||
# while mocking the respective functions |
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.
👍 this is a good comment. Makes maintaining things in the future much easier.
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.
You'll probably want to rebase things once #13 is merged, but this looks great to me. Please don't merge until the tests are passing in CI.
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
5c0dc60
to
28ed984
Compare
addressed #9 comments by @SEJeff