From c0cfda9d37ac6e29db2f7a200f1c8d352d5abf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthieu=20T=C3=A2che?= Date: Sun, 29 Dec 2024 22:43:32 +0100 Subject: [PATCH] test: fix benchmark --- tests/benchmark/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/benchmark/utils.py b/tests/benchmark/utils.py index 1017cfe0a..4049c6319 100644 --- a/tests/benchmark/utils.py +++ b/tests/benchmark/utils.py @@ -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)