1212 MIN_ACTIVATION_BALANCE ,
1313 EFFECTIVE_BALANCE_INCREMENT ,
1414)
15- from src .modules .oracles .staking_modules .common .distribution import Distribution , ValidatorDuties , ValidatorDutiesOutcome
15+ from src .modules .oracles .staking_modules .common .distribution import (
16+ Distribution ,
17+ ValidatorDuties ,
18+ ValidatorDutiesOutcome ,
19+ )
1620from src .modules .oracles .staking_modules .common .log import FramePerfLog , ValidatorFrameSummary , OperatorFrameSummary
1721from src .modules .oracles .staking_modules .common .state import DutyAccumulator , State , NetworkDuties , Frame
1822from src .modules .oracles .staking_modules .common .types import StrikesList
@@ -297,7 +301,9 @@ def test_calculate_distribution(
297301 expected_strikes ,
298302):
299303 # Mocking the data from EL
300- w3 = Mock (spec = Web3 , staking_module = Mock (spec = StakingModuleContracts , fee_distributor = Mock (spec = CSFeeDistributorContract )))
304+ w3 = Mock (
305+ spec = Web3 , staking_module = Mock (spec = StakingModuleContracts , fee_distributor = Mock (spec = CSFeeDistributorContract ))
306+ )
301307 w3 .staking_module .fee_distributor .shares_to_distribute = Mock (side_effect = shares_to_distribute )
302308 w3 .staking_module .get_curve_params = mocked_curve_params
303309
@@ -323,7 +329,9 @@ def test_calculate_distribution(
323329@pytest .mark .unit
324330def test_calculate_distribution_handles_invalid_distribution ():
325331 # Mocking the data from EL
326- w3 = Mock (spec = Web3 , staking_module = Mock (spec = StakingModuleContracts , fee_distributor = Mock (spec = CSFeeDistributorContract )))
332+ w3 = Mock (
333+ spec = Web3 , staking_module = Mock (spec = StakingModuleContracts , fee_distributor = Mock (spec = CSFeeDistributorContract ))
334+ )
327335 w3 .staking_module .fee_distributor .shares_to_distribute = Mock (return_value = 500 )
328336 w3 .staking_module .get_curve_params = Mock (...)
329337
@@ -351,7 +359,9 @@ def test_calculate_distribution_handles_invalid_distribution():
351359@pytest .mark .unit
352360def test_calculate_distribution_handles_invalid_distribution_in_total ():
353361 # Mocking the data from EL
354- w3 = Mock (spec = Web3 , staking_module = Mock (spec = StakingModuleContracts , fee_distributor = Mock (spec = CSFeeDistributorContract )))
362+ w3 = Mock (
363+ spec = Web3 , staking_module = Mock (spec = StakingModuleContracts , fee_distributor = Mock (spec = CSFeeDistributorContract ))
364+ )
355365 w3 .staking_module .fee_distributor .shares_to_distribute = Mock (return_value = 500 )
356366 w3 .staking_module .get_curve_params = Mock (...)
357367
0 commit comments