Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/bunker-calculate-cl-rebase' …
Browse files Browse the repository at this point in the history
…into fix/bunker-calculate-cl-rebase
  • Loading branch information
F4ever committed Feb 12, 2025
2 parents 8a087ee + 1b3caa4 commit 8466f70
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ def test_get_nearest_and_distant_blockstamps(
],
)
def test_calculate_cl_rebase_between_blocks(
monkeypatch,
web3,
prev_lido_validators,
curr_lido_validators,
Expand All @@ -361,7 +362,12 @@ def test_calculate_cl_rebase_between_blocks(
abnormal_case.w3.lido_contracts = Mock()
abnormal_case.w3.cc.get_validators_no_cache = Mock()

LidoValidatorsProvider.merge_validators_with_keys = Mock(return_value=prev_lido_validators)
with monkeypatch.context():
monkeypatch.setattr(
LidoValidatorsProvider,
"merge_validators_with_keys",
Mock(return_value=prev_lido_validators),
)
abnormal_case.lido_validators = curr_lido_validators
abnormal_case.w3.lido_contracts.get_withdrawal_balance_no_cache = Mock(
side_effect=[curr_withdrawals_vault_balance, prev_withdrawals_vault_balance]
Expand Down

0 comments on commit 8466f70

Please sign in to comment.