Skip to content

Commit 305bfed

Browse files
committed
Correción en archivo run.py, se estaba validando mal la lectura del archivo test.env (posible causa de caida de test)
1 parent 056c759 commit 305bfed

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/run.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,8 @@ def addFailure(self, test, err):
4343
tests_dir = os.path.dirname(os.path.abspath(__file__))
4444

4545
# Cargar variables de entorno para los tests
46-
if not load_dotenv(os.path.join(tests_dir, 'test.env'), override=True):
47-
print('\n[Error] No fue posible cargar las variables de entorno para los tests.')
48-
print(f'Corroborar que exista el archivo {tests_dir}/test.env y posea las variables definidas.\n')
49-
sys.exit()
46+
if os.path.exists(os.path.join(tests_dir, 'test.env')):
47+
load_dotenv(os.path.join(tests_dir, 'test.env'), override=True)
5048

5149
# Determinar si se pidió un test específico o se ejecutan todos
5250
parser = argparse.ArgumentParser(description='Ejecución de los casos de prueba')

0 commit comments

Comments
 (0)