-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add params module tests #56
Conversation
internal/modules/params/test.py
Outdated
class TestParamsModuleQUeries(unittest.TestCase): | ||
def test_subspace_query(self): | ||
path = f"{HOME}/.simd-1/config/" | ||
with open(path + "genesis.json",encoding="utf8") as file: |
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.
don't need to cross check with genesis params.
internal/modules/params/test.py
Outdated
subspace_distribution = query_subspace("distribution", "bonusproposerreward")[ | ||
1 | ||
]["value"] | ||
self.assertEqual( |
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.
just cross check if the value is a valid integer
internal/modules/params/test.py
Outdated
subspace_slashing = query_subspace("slashing", "SignedBlocksWindow")[1]["value"] | ||
self.assertEqual( | ||
eval(subspace_slashing), | ||
(data["app_state"]["slashing"]["params"]["signed_blocks_window"]), |
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
scripts/tests/params_module.sh
Outdated
@@ -0,0 +1,15 @@ | |||
#/bin/sh | |||
|
|||
set -e |
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 file is not required
No description provided.