Skip to content

Conversation

F4ever
Copy link
Member

@F4ever F4ever commented Jan 30, 2025

No description provided.

@@ -243,6 +242,7 @@ def ref_blockstamp(self) -> ReferenceBlockStamp:
@pytest.mark.unit
def test_earliest_exit_epoch_is_old(self, ejector: Ejector, ref_blockstamp: ReferenceBlockStamp) -> None:
ejector._get_total_active_balance = Mock(return_value=int(2048e9))
ejector.get_consensus_version = Mock(return_value=3)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it can be defined on a fixture level?

@pytest.fixture()
def ejector(web3: Web3, contracts: LidoContracts) -> Ejector:
    web3.lido_contracts.validators_exit_bus_oracle.get_consensus_version = Mock(return_value=3)
    return Ejector(web3)

@F4ever F4ever merged commit 79c4b7a into feat/oracle-v5 Jan 31, 2025
6 checks passed
@F4ever F4ever deleted the feat/final-refactoring branch April 15, 2025 02:20
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