Skip to content
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 staking module integration tests #34

Merged
merged 52 commits into from
Jul 18, 2022

Conversation

PrathyushaLakkireddy
Copy link
Contributor

@PrathyushaLakkireddy PrathyushaLakkireddy commented Jun 21, 2022

ref: #20

This PR adds all the txs and query integration tests for x/staking module

@PrathyushaLakkireddy PrathyushaLakkireddy marked this pull request as ready for review June 21, 2022 07:30
@PrathyushaLakkireddy PrathyushaLakkireddy marked this pull request as draft June 21, 2022 07:30
@PrathyushaLakkireddy PrathyushaLakkireddy changed the title scripts for staking module Scripts for staking module Jun 21, 2022
@PrathyushaLakkireddy PrathyushaLakkireddy marked this pull request as ready for review June 21, 2022 07:43
@PrathyushaLakkireddy PrathyushaLakkireddy marked this pull request as draft June 21, 2022 09:22
@anilcse anilcse changed the title Scripts for staking module Add staking module integration tests Jun 21, 2022
python-qa-tools/modules/staking/query.py Outdated Show resolved Hide resolved
python-qa-tools/modules/staking/query.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/modules/staking/tx.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@anilcse anilcse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @PrathyushaLakkireddy 🎉, just small nits

scripts/tests/staking.sh Outdated Show resolved Hide resolved
Comment on lines 32 to 36
if sender == validator:
sys.exit(
'Error: The values of arguments "sender" and "receiver" are equal make sure to set different values'
)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this canot be true as there will be different prefixes

Suggested change
if sender == validator:
sys.exit(
'Error: The values of arguments "sender" and "receiver" are equal make sure to set different values'
)

Comment on lines 32 to 36
if sender == validator:
sys.exit(
'Error: The values of arguments "sender" and "receiver" are equal make sure to set different values'
)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this canot be true as there will be different prefixes

Suggested change
if sender == validator:
sys.exit(
'Error: The values of arguments "sender" and "receiver" are equal make sure to set different values'
)

Comment on lines 29 to 30
# assign the arguments
sender, amount_to_be_sent = delegator, 5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# assign the arguments
sender, amount_to_be_sent = delegator, 5
# assign the arguments
amount = 5

internal/modules/staking/test.py Outdated Show resolved Hide resolved
internal/utils/env.py Outdated Show resolved Hide resolved
internal/utils/utils.py Outdated Show resolved Hide resolved
internal/utils/env.py Outdated Show resolved Hide resolved
internal/utils/env.py Outdated Show resolved Hide resolved
@anilcse anilcse merged commit 58f7fd2 into cosmos:master Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants