Spaces:
Running
Running
| # ============================================================ | |
| # 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)) | |