Skip to content

Commit a42daac

Browse files
committed
Se corrigió en Makefile el conjunto de tests a probar, y por consiguiente los workflow ci.yml y .scrutinizer.yml. Se corrigió un fragmento de código que impedía obtener errores más precisos al fallar un test en run.py.
1 parent b0f4a5d commit a42daac

5 files changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ jobs:
3535
LIBREDTE_HASH: ${{ secrets.LIBREDTE_HASH }}
3636
LIBREDTE_RUT: ${{ vars.LIBREDTE_RUT }}
3737
run: |
38-
make tests_dte_temp
39-
make tests_cobros
38+
make tests-readonly
4039
4140
- name: Upload pytest result report
4241
if: failure()

.scrutinizer.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ build:
66
analysis:
77
tests:
88
override:
9-
- python-scrutinizer-run
10-
- command: make tests_dte_temp
9+
- py-scrutinizer-run
10+
- command: make tests-readonly
1111
coverage:
1212
file: var/tests-coverage.xml
1313
format: clover

Makefile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,31 @@ install-dev:
1212
tests: install-dev
1313
python tests/run.py
1414

15-
tests_dte:
15+
tests-dte:
1616
python3 tests/run.py dte_facturacion
1717

18-
tests_dte_real:
18+
tests-dte_real:
1919
python3 tests/run.py dte_facturacion.dte_real
2020

21-
tests_dte_rec:
21+
tests-dte_rec:
2222
python3 tests/run.py dte_facturacion.dte_recibidos
2323

24-
tests_dte_temp:
24+
tests-dte_temp:
2525
python3 tests/run.py dte_facturacion.dte_temp
2626

27-
tests_cobros:
27+
tests-cobros:
2828
python3 tests/run.py pagos_cobros_masivos
2929

30+
tests-readonly:
31+
python3 tests/run.py dte_facturacion.dte_temp.test_buscar_dte_temp.TestBuscarDteTemp
32+
python3 tests/run.py dte_facturacion.dte_temp.test_descargar_pdf_dte_temp.TestDescargarPdfDteTemp
33+
python3 tests/run.py dte_facturacion.dte_temp.test_descargar_xml_dte_temp.TestDescargarXmlDteTemp
34+
python3 tests/run.py dte_facturacion.dte_temp.test_emitir_dte_temp.TestEmitirDteTemp
35+
python3 tests/run.py dte_facturacion.dte_temp.test_eliminar_dte_temp.TestEliminarDteTemp
36+
python3 tests/run.py dte_facturacion.dte_temp.test_listar_dte_temp.TestListarDteTemp
37+
python3 tests/run.py pagos_cobros_masivos.test_buscar_cobro_programado.TestBuscarCobroProgramado
38+
python3 tests/run.py pagos_cobros_masivos.test_listar_cobros_masivos_programados.TestListarCobrosMasivosProgramados
39+
3040
docs:
3141
sphinx-apidoc -o docs libredte && sphinx-build -b html docs docs/_build/html
3242

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
name='libredte',
3535

3636
# Versions should comply with PEP440
37-
version='4.4.1',
37+
version='4.4.2',
3838

3939
description='Cliente para realizar la integración con los servicios web de LibreDTE desde Python.',
4040
long_description="\n"+long_description,

tests/run.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ def addFailure(self, test, err):
3535
if exception_type is AssertionError:
3636
self.stream.writeln(f"\nFAIL: {test.id()}")
3737
self.stream.writeln(f"Assertion Error: {value}")
38-
else:
39-
# Manejo estándar para otros errores
40-
super().addFailure(test, err)
38+
# Manejo estándar para otros errores
39+
super().addFailure(test, err)
4140

4241
# Directorio de tests
4342
tests_dir = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)