-
Notifications
You must be signed in to change notification settings - Fork 129
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
Strategy Test Interface to omit Real node interaction and API calls. #515
Comments
Decide on what frameworks for unit testing. Here are 3 frameworks for python testing. we should pick one as a guide for uniformity across all future tests.
|
Other strategy unit tests should base their unit test code off of this interface |
I did some research on topic, basically we have several options:
The 3rd approach seems most natural. Exact tools to implement this needs to be picked. |
I support your 3rd approach. This would be useful in the event that we also write tests querying the nodes using websocket only code in addition to bitshares-instance |
Remark from the dev chat. Running all tests on clean fresh environment gives us 100% reproducible results. Relying on public testnet is bad, because:
|
from #464 "Lots of functions requires API calls and bitshares node. Real node interaction can be omitted by using a fixtures and mocks (simulate API calls and responses)."
this task to create dummy interface for testing strategies and omit real calls
The text was updated successfully, but these errors were encountered: