Skip to content

Commit ba9394b

Browse files
committed
Python lints (due to new version of Black formatter)
1 parent ff2891e commit ba9394b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/apis/batch/sum/sample_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import List
22
from random import sample
33

4-
RANGE = 10 ** 12
4+
RANGE = 10**12
55
LENGTH = 5
66

77

test/e2e/e2e/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,14 @@ def test_autoscaling(
447447
current_replicas += 1
448448
if current_replicas > max_replicas:
449449
current_replicas = max_replicas
450-
test_timeout += int(autoscaling["upscale_stabilization_period"] / (1000 ** 3))
450+
test_timeout += int(autoscaling["upscale_stabilization_period"] / (1000**3))
451451
while current_replicas > 1:
452452
downscale_ceil = math.ceil(current_replicas * autoscaling["max_downscale_factor"])
453453
if downscale_ceil < current_replicas - 1:
454454
current_replicas = downscale_ceil
455455
else:
456456
current_replicas -= 1
457-
test_timeout += int(autoscaling["downscale_stabilization_period"] / (1000 ** 3))
457+
test_timeout += int(autoscaling["downscale_stabilization_period"] / (1000**3))
458458

459459
# add overhead to the test timeout to account for the process of downloading images or adding nodes to the cluster
460460
test_timeout *= 2

test/e2e/tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ def pytest_configure(config):
126126
},
127127
"load_test_config": {
128128
"realtime": {
129-
"total_requests": 10 ** 5,
129+
"total_requests": 10**5,
130130
"desired_replicas": 50,
131131
"concurrency": 50,
132132
"status_code_timeout": 60, # measured in seconds
133133
},
134134
"async": {
135-
"total_requests": 10 ** 3,
135+
"total_requests": 10**3,
136136
"desired_replicas": 20,
137137
"concurrency": 10,
138138
"submit_timeout": 120, # measured in seconds
@@ -141,7 +141,7 @@ def pytest_configure(config):
141141
"batch": {
142142
"jobs": 10,
143143
"workers_per_job": 10,
144-
"items_per_job": 10 ** 5,
144+
"items_per_job": 10**5,
145145
"batch_size": 10 * 2,
146146
"workload_timeout": 300, # measured in seconds
147147
},

0 commit comments

Comments
 (0)