From 9699e7abc610efd1edd510deb78a83090beebba0 Mon Sep 17 00:00:00 2001 From: Sebastian Zett Date: Wed, 27 Mar 2024 10:50:36 +0100 Subject: [PATCH] fix(tests): autouse pytest fixture to correctly set value of langdetect seed for all unit tests --- tests/evaluation/test_graders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/evaluation/test_graders.py b/tests/evaluation/test_graders.py index a80b1447b..0a6ef4a27 100644 --- a/tests/evaluation/test_graders.py +++ b/tests/evaluation/test_graders.py @@ -4,7 +4,7 @@ from intelligence_layer.evaluation import HighlightCoverageGrader, LanguageMatchesGrader -@fixture(scope="session") +@fixture(scope="session", autouse=True) def set_deterministic_seed() -> None: langdetect.DetectorFactory.seed = 0