Skip to content

Commit

Permalink
fix: black
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Sep 13, 2024
1 parent 38054cc commit ae3ee0a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/modules/csm/test_csm_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,19 +562,19 @@ class BuildReportTestParam:
prev_acc_shares=[(NodeOperatorId(0), 100), (NodeOperatorId(1), 200), (NodeOperatorId(2), 300)],
curr_distribution=Mock(
return_value=(
# distributed
6,
# shares
defaultdict(int, {NodeOperatorId(0): 1, NodeOperatorId(1): 2, NodeOperatorId(3): 3}),
# log
Mock(),
# distributed
6,
# shares
defaultdict(int, {NodeOperatorId(0): 1, NodeOperatorId(1): 2, NodeOperatorId(3): 3}),
# log
Mock(),
)
),
curr_root="0x101e",
curr_cid="0x101c",
expected_make_tree_call_args=(({
NodeOperatorId(0): 101, NodeOperatorId(1): 202, NodeOperatorId(2): 300, NodeOperatorId(3): 3
},),),
expected_make_tree_call_args=(
({NodeOperatorId(0): 101, NodeOperatorId(1): 202, NodeOperatorId(2): 300, NodeOperatorId(3): 3},),
),
expected_func_result=(1, 100500, "0x101e", "0x101c", 6),
),
id="non_empty_prev_report_and_new_distribution",
Expand All @@ -600,7 +600,7 @@ class BuildReportTestParam:
expected_func_result=(1, 100500, "0x100e", "0x100c", 0),
),
id="non_empty_prev_report_and_no_new_distribution",
)
),
],
)
def test_build_report(module: CSOracle, param: BuildReportTestParam):
Expand Down

0 comments on commit ae3ee0a

Please sign in to comment.