Skip to content

Commit

Permalink
test: fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Dec 29, 2024
1 parent 7dd36f0 commit c0cfda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def import_test_modules() -> Generator[ModuleType, None, None]:
for test_data in module.DATA:
test = test_data["test"]
result_overwrite = AntaTest.Input.ResultOverwrite(custom_field=test_data["name"])
if test_data["inputs"] is None:
if "inputs" not in test_data or test_data["inputs"] is None:
inputs = test.Input(result_overwrite=result_overwrite)
else:
inputs = test.Input(**test_data["inputs"], result_overwrite=result_overwrite)
Expand Down

0 comments on commit c0cfda9

Please sign in to comment.