14 lines
404 B
Python
14 lines
404 B
Python
# -*- coding: utf-8 -*-
|
|
"""conftest.py — Deja importable el paquete `monitor_estado` en los tests.
|
|
|
|
Anade INFRAESTRUCTURA/scripts al sys.path para poder hacer
|
|
`import monitor_estado.<modulo>` sin instalar el paquete.
|
|
"""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
SCRIPTS_DIR = Path(__file__).resolve().parent.parent / "scripts"
|
|
if str(SCRIPTS_DIR) not in sys.path:
|
|
sys.path.insert(0, str(SCRIPTS_DIR))
|