Skip to content

Commit

Permalink
fix(tests): autouse pytest fixture to correctly set value of langdete…
Browse files Browse the repository at this point in the history
…ct seed for all unit tests
  • Loading branch information
SebastianZettAA committed Mar 27, 2024
1 parent f4937a7 commit 9699e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/evaluation/test_graders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9699e7a

Please sign in to comment.