13 lines
401 B
Python
13 lines
401 B
Python
import os
|
|||
|
|
|
||
|
|
import pytest
|
||
|
|
|
||
|
|
RAIZ = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||
|
|
FIXTURES = os.path.join(RAIZ, "tests", "fixtures", "correos_prueba")
|
||
|
|
GOLDEN = os.path.join(RAIZ, "tests", "golden")
|
||
|
|
|
||
|
|
|
||
|
|
@pytest.fixture
|
||
|
|
def actualizar_golden() -> bool:
|
||
|
|
"""True si se ejecutó con ``UPDATE_GOLDEN=1`` (regenera los resultados esperados)."""
|
||
|
|
return os.environ.get("UPDATE_GOLDEN") == "1"
|