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

[WIP]Test scripts for check_stop_trading_abci #307

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

Tanuj-solulab
Copy link

This branch is dedicated to writing and refining test scripts for the check_stop_trading_abci function.

@Adamantios Adamantios marked this pull request as draft August 8, 2024 13:18
@Tanuj-solulab Tanuj-solulab marked this pull request as ready for review August 9, 2024 11:05
Copy link
Collaborator

@Adamantios Adamantios left a comment

Choose a reason for hiding this comment

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

The behaviours code is not covered. Please check the pytest's cov report and update accordingly:

Name                                                                      Stmts   Miss  Cover   Missing
-------------------------------------------------------------------------------------------------------
packages/valory/skills/check_stop_trading_abci/__init__.py                    2      0   100%
packages/valory/skills/check_stop_trading_abci/behaviours.py                 86     50    42%   60, 65, 69-77, 91-136, 147-158, 162-170

Comment on lines 148 to 149
# Execute the generator and retrieve the final return value
staking_kpi_met_gen = behaviour.is_staking_kpi_met()
Copy link
Collaborator

Choose a reason for hiding this comment

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

The generator is never iterated upon.

Copy link
Author

Choose a reason for hiding this comment

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

Okay i will try to improve the scripts.

@Adamantios Adamantios changed the base branch from main to develop December 9, 2024 09:41
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.

3 participants