Skip to content

Commit 8825592

Browse files
committed
lint
1 parent f5c54a3 commit 8825592

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/scenarios/ln_init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from time import sleep
44

55
from scenarios.utils import ensure_miner
6-
from warnet.utils import channel_match
76
from warnet.test_framework_bridge import WarnetTestFramework
7+
from warnet.utils import channel_match
88

99

1010
def cli_help():
@@ -116,7 +116,7 @@ def funded_lnnodes():
116116
source_node.update_channel_policy(chan_pt, data["source_policy"])
117117

118118
while True:
119-
self.log.info(f"Waiting for all channel policies to match")
119+
self.log.info("Waiting for all channel policies to match")
120120
score = 0
121121
for tank_index, me in enumerate(ln_nodes):
122122
you = (tank_index + 1) % len(ln_nodes)

test/graph_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import tempfile
66
import uuid
77
from pathlib import Path
8-
from warnet.utils import channel_match, DEFAULT_TAG
9-
from test_base import TestBase
108

9+
from test_base import TestBase
10+
from warnet.utils import DEFAULT_TAG, channel_match
1111

1212
base = TestBase()
1313
base.start_server()
@@ -70,8 +70,8 @@
7070
base.wait_for_all_scenarios()
7171

7272
print("Ensuring warnet LN channel policies match imported JSON description")
73-
with open(json_file_path, "r") as file:
74-
actual = json.loads(base.warcli(f"lncli 0 describegraph"))["edges"]
73+
with open(json_file_path) as file:
74+
actual = json.loads(base.warcli("lncli 0 describegraph"))["edges"]
7575
expected = json.loads(file.read())["edges"]
7676
expected = sorted(expected, key=lambda chan: int(chan['channel_id']))
7777
for chan_index, actual_chan in enumerate(actual):

0 commit comments

Comments
 (0)