03-oct: superguardado automático
This commit is contained in:
13
tests/conftest.py
Normal file
13
tests/conftest.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- 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))
|
||||
Reference in New Issue
Block a user