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

test script for check_stop_trading_abci #308

Conversation

Ravleen-Solulab
Copy link
Contributor

@Ravleen-Solulab Ravleen-Solulab commented Aug 8, 2024

This is branch for testing script for rounds and dialogues.

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.

Could you also add a test for the SynchronizedData?

@Ravleen-Solulab
Copy link
Contributor Author

Ravleen-Solulab commented Aug 9, 2024 via email

@Ravleen-Solulab Ravleen-Solulab force-pushed the Test-scripts-check_stop_trading_abci branch from 42beace to f065bbe Compare August 9, 2024 13:15
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.

There is uncovered code:

  • In check stop trading: synced data
  • In staking: synced data and end block in CallCheckpointRound
  • In multiplexer: end block in PostTxSettlementRound

@Ravleen-Solulab
Copy link
Contributor Author

Ravleen-Solulab commented Aug 9, 2024 via email

@Ravleen-Solulab Ravleen-Solulab force-pushed the Test-scripts-check_stop_trading_abci branch from eabb2f4 to e23a7d6 Compare August 13, 2024 13:07



def test_check_stop_trading_round_initialization(synchronized_data):
Copy link
Collaborator

Choose a reason for hiding this comment

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

These tests should also check whether we can run the rounds and that for every potential execution branch we get the expected data and event. Check this for some inspiration: https://github.com/valory-xyz/IEKit/blob/main/packages/valory/skills/dynamic_nft_abci/tests/test_rounds.py#L125

@Ravleen-Solulab
Copy link
Contributor Author

Ravleen-Solulab commented Aug 14, 2024 via email


def test_update_bets_round_execution(self):
"""Test the execution of UpdateBetsRound."""
test_case = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@annasambrook annasambrook self-requested a review August 21, 2024 07:48
@Ravleen-Solulab Ravleen-Solulab deleted the Test-scripts-check_stop_trading_abci branch August 22, 2024 11:11
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