From 30bf792ebc39e66a832ed7e46a0a3da3eb7ac425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lie=20Bouttier?= Date: Thu, 19 Sep 2024 16:07:09 +0200 Subject: [PATCH] fix(tests): move import after importorskip --- backend/geonature/tests/test_validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/geonature/tests/test_validation.py b/backend/geonature/tests/test_validation.py index 166df942e8..4e7e6186fd 100644 --- a/backend/geonature/tests/test_validation.py +++ b/backend/geonature/tests/test_validation.py @@ -7,7 +7,6 @@ from geonature.core.gn_synthese.models import Synthese from geonature.core.gn_commons.models import TValidations, VLatestValidations from geonature.core.gn_profiles.models import VConsistancyData -from gn_module_validation.tasks import set_auto_validation from geonature.utils.env import db from geonature.utils.config import config @@ -22,6 +21,8 @@ "VALIDATION" in config["DISABLED_MODULES"], reason="Validation is disabled" ) +from gn_module_validation.tasks import set_auto_validation + @pytest.fixture() def validation_with_max_score_and_wait_validation_status():