Closed Ravleen-Solulab closed 2 months ago
Sure, no problem. I will do it.
On Fri, Aug 9, 2024 at 2:32 PM Adamantios Zaras @.***> wrote:
@.**** requested changes on this pull request.
Could you also add a test for the SynchronizedData?
— Reply to this email directly, view it on GitHub https://github.com/valory-xyz/trader/pull/308#pullrequestreview-2229719213, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKA53YZA6QA4Q7SFLFAYBODZQSARRAVCNFSM6AAAAABMGZP2KGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDEMRZG4YTSMRRGM . You are receiving this because you authored the thread.Message ID: @.***>
Let me know if I am missing something. Thank you.
On Fri, 9 Aug, 2024, 10:41 pm Adamantios Zaras, @.***> wrote:
@.**** requested changes on this pull request.
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
— Reply to this email directly, view it on GitHub https://github.com/valory-xyz/trader/pull/308#pullrequestreview-2230688214, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKA53Y67KPHW27IBBRCEA3TZQTZ5ZAVCNFSM6AAAAABMGZP2KGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDEMZQGY4DQMRRGQ . You are receiving this because you authored the thread.Message ID: @.***>
Thanks, I'll check it out and make changes accordingly.
On Tue, 13 Aug, 2024, 7:51 pm David Vilela, @.***> wrote:
@.**** commented on this pull request.
In packages/valory/skills/check_stop_trading_abci/tests/test_rounds.py https://github.com/valory-xyz/trader/pull/308#discussion_r1715387969:
+ + @.*** +def abci_app():
- """Fixture to get the ABCI app with necessary parameters."""
Create mocks for the required parameters
- synchronized_data = MagicMock()
- logger = MagicMock()
- context = MagicMock()
Instantiate CheckStopTradingAbciApp with mocked parameters
- return CheckStopTradingAbciApp(synchronized_data=synchronized_data, logger=logger, context=context)
+def test_check_stop_trading_round_initialization(synchronized_data):
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
— Reply to this email directly, view it on GitHub https://github.com/valory-xyz/trader/pull/308#pullrequestreview-2235711303, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKA53Y23X4FY5XLT2ZKF7VTZRIJABAVCNFSM6AAAAABMGZP2KGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDEMZVG4YTCMZQGM . You are receiving this because you authored the thread.Message ID: @.***>
This is branch for testing script for rounds and dialogues.