Skip to content

Commit c0aae41

Browse files
committed
ruff format
1 parent 1f52b03 commit c0aae41

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

Diff for: ruff.toml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
extend-exclude = [
22
"resources/images/commander/src/test_framework",
33
"resources/images/exporter/authproxy.py",
4+
"src/test_framework/*",
45
]
56
line-length = 100
67
indent-width = 4

Diff for: src/warnet/cli/scenarios.py

+11-10
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,17 @@ def run_scenario(scenario_path, additional_args):
9292

9393
tankpods = get_mission("tank")
9494
tanks = [
95-
{
96-
"tank": tank.metadata.name,
97-
"chain": "regtest",
98-
"rpc_host": tank.status.pod_ip,
99-
"rpc_port": 18443,
100-
"rpc_user": "user",
101-
"rpc_password": "password",
102-
"init_peers": [],
103-
} for tank in tankpods
104-
]
95+
{
96+
"tank": tank.metadata.name,
97+
"chain": "regtest",
98+
"rpc_host": tank.status.pod_ip,
99+
"rpc_port": 18443,
100+
"rpc_user": "user",
101+
"rpc_password": "password",
102+
"init_peers": [],
103+
}
104+
for tank in tankpods
105+
]
105106
kubernetes_objects = [create_namespace()]
106107
kubernetes_objects.extend(
107108
[

Diff for: test/data/scenario_p2p_interface.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
# The base class exists inside the commander container
99
from commander import Commander
1010

11+
1112
def cli_help():
1213
return "Run P2P GETDATA test"
1314

Diff for: test/graph_test.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ def run_test(self):
3636
def test_graph_creation_and_import(self):
3737
self.log.info(f"CLI tool creating test graph file: {self.tf_create}")
3838
self.log.info(
39-
self.warcli(
40-
f"graph create 10 --outfile={self.tf_create} --version={DEFAULT_TAG}"
41-
)
39+
self.warcli(f"graph create 10 --outfile={self.tf_create} --version={DEFAULT_TAG}")
4240
)
4341
self.wait_for_predicate(lambda: Path(self.tf_create).exists())
4442

Diff for: test/test_base.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from warnet.cli.network import _connected as network_connected
1616
from warnet.cli.scenarios import _active as scenarios_active
1717

18+
1819
class TestBase:
1920
def __init__(self):
2021
self.setup_environment()
@@ -135,6 +136,7 @@ def check_scenarios():
135136
if s["status"] != "succeeded":
136137
return False
137138
return True
139+
138140
self.wait_for_predicate(check_scenarios)
139141

140142
def get_scenario_return_code(self, scenario_name):

0 commit comments

Comments
 (0)