Skip to content

Commit

Permalink
Removes trailing whitespaces and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorral committed Dec 6, 2022
1 parent 32cf5f5 commit e6a52dc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/functional/rpc_listgovproposals.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""Test on chain government behaviour"""

from test_framework.test_framework import DefiTestFramework
from test_framework.authproxy import JSONRPCException
from test_framework.util import (
assert_equal,
assert_raises_rpc_error
Expand Down Expand Up @@ -44,7 +43,7 @@ def setup(self):
self.nodes[0].sendtoaddress(self.address2, Decimal("1.0"))
self.nodes[0].sendtoaddress(self.address3, Decimal("1.0"))
self.nodes[0].generate(1)

# mine at least one block with each mn to be able to vote
self.nodes[1].generate(1)
self.nodes[2].generate(1)
Expand Down Expand Up @@ -103,7 +102,7 @@ def create_100_proposals_and_revert(self):

def create_20_proposals_go_to_end_cycle_1(self):
tmp_proposals = self.create_proposals(num_props=20)

# check all inside same cycle
tmp_end_cycle_height = tmp_proposals[0]["cycleEndHeight"]
for prop in tmp_proposals:
Expand All @@ -118,7 +117,7 @@ def create_20_proposals_go_to_end_cycle_1(self):

def create_10_proposals_go_to_end_cycle_2(self):
tmp_proposals = self.create_proposals(num_props=10, cycles=2)

# check all inside same cycle
tmp_end_cycle_height = tmp_proposals[0]["cycleEndHeight"]
for prop in tmp_proposals:
Expand Down Expand Up @@ -188,7 +187,7 @@ def create_10_proposals_go_to_end_cycle_2(self):

def create_10_proposals_and_aprove_half(self):
tmp_proposals = self.create_proposals(num_props=10, cycles=2)

# check all inside same cycle
tmp_end_cycle_height = tmp_proposals[0]["cycleEndHeight"]
for prop in tmp_proposals:
Expand Down Expand Up @@ -261,7 +260,7 @@ def create_10_proposals_and_aprove_half(self):
assert_equal(len(prop_list), 5)
prop_list = self.nodes[0].listgovproposals("cfp", "completed", 3)
assert_equal(len(prop_list), 0)

# check voting CFPs are in second cycle
prop_list = self.nodes[0].listgovproposals("all", "all", 4)
for prop in prop_list:
Expand Down

0 comments on commit e6a52dc

Please sign in to comment.