From b86def69a0affc7596fd2d4b15fa5a0d2e65bf20 Mon Sep 17 00:00:00 2001 From: Bourgerie Quentin Date: Tue, 13 Aug 2024 17:22:52 +0200 Subject: [PATCH] test(frontend-python): Fix default value and option for the optimizatio strategy to test --- frontends/concrete-python/tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/concrete-python/tests/conftest.py b/frontends/concrete-python/tests/conftest.py index dc0b288395..a469a40fe8 100644 --- a/frontends/concrete-python/tests/conftest.py +++ b/frontends/concrete-python/tests/conftest.py @@ -54,7 +54,7 @@ def pytest_addoption(parser): parser.addoption( "--strategy", type=str, - default=None, + default="multi", action="store", help="Which optimization strategy to use in execution tests (v0, mono or multi)", ) @@ -95,7 +95,7 @@ def pytest_sessionstart(session): OPTIMIZATION_STRATEGY = fhe.ParameterSelectionStrategy.V0 elif strategy == "multi": OPTIMIZATION_STRATEGY = fhe.ParameterSelectionStrategy.MULTI - else: + elif strategy == "mono": OPTIMIZATION_STRATEGY = fhe.ParameterSelectionStrategy.MONO USE_GPU = session.config.getoption("--use_gpu", default=False)