Prompt-Builder / tests /conftest.py
ArielJoe's picture
feat: strengthen detectors, slim API schema, and improve UX
170ad43
Raw
History Blame Contribute Delete
559 Bytes
# ============================================================
# FILE : conftest.py
# FUNGSI: Konfigurasi pytest - menambahkan src/ ke import path
# AUTHOR: Ariel Jonathan
# ============================================================
from __future__ import annotations
import sys
from pathlib import Path
# Direktori src/ ditambahkan ke path agar modul detektor dapat diimpor
# langsung oleh berkas test tanpa instalasi paket.
_SRC_DIR = Path(__file__).resolve().parents[1] / "src"
if str(_SRC_DIR) not in sys.path:
sys.path.insert(0, str(_SRC_DIR))