Skip to content

Commit 14611ef

Browse files
author
Dmytro Parfeniuk
committed
fixed code quality issues. fixed tests
1 parent 5a8763c commit 14611ef

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/guidellm/scheduler/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class SchedulerResult:
3636
:param current_result: The result of the current request, if any.
3737
:type current_result: Optional[Union[TextGenerationResult, Exception]]
3838
:param batch_results: The result of the current batch of requests, if any
39-
:type batch_results: Optional[List[Union[TextGenerationResult, TextGenerationError]]]
39+
:type batch_results: Optional[List[
40+
Union[TextGenerationResult, TextGenerationError]]
41+
]
4042
"""
4143

4244
completed: bool

tests/unit/test_main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def test_generate_benchmark_report_invoke_smoke(
252252
max_requests=10,
253253
output_path="benchmark_report.json",
254254
cont_refresh_table=False,
255+
batch_size=None,
255256
)
256257
assert report is not None
257258

@@ -308,6 +309,7 @@ def test_generate_benchmark_report_emulated_with_dataset_requests(
308309
rate=None,
309310
max_seconds=10,
310311
max_requests="dataset",
312+
batch_size=None,
311313
output_path="benchmark_report.json",
312314
cont_refresh_table=False,
313315
)
@@ -397,6 +399,7 @@ def test_generate_benchmark_report_openai_limited_by_file_dataset(
397399
rate=rate,
398400
max_seconds=None,
399401
max_requests="dataset",
402+
batch_size=None,
400403
output_path="benchmark_report.json",
401404
cont_refresh_table=False,
402405
)

0 commit comments

Comments
 (0)