From 44fba138eaf755def61dc60903805e7f0dd67beb Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Sat, 14 Feb 2026 10:03:53 +0100 Subject: [PATCH] Update tests/test_registrator.py --- tests/test_registrator.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_registrator.py b/tests/test_registrator.py index 6f712fd..e0a570e 100644 --- a/tests/test_registrator.py +++ b/tests/test_registrator.py @@ -5,6 +5,13 @@ from datetime import datetime as real_datetime import requests +import os +import sys + +PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) +if PROJECT_ROOT not in sys.path: + sys.path.insert(0, PROJECT_ROOT) + def import_registrator_safely(monkeypatch): """ Neutralise logging.basicConfig avant import pour éviter