PyAr / pyafipws

Interfases, tools and apps for Argentina's gov't. webservices (soap, com/dll simil-ocx, pdf, dbf, xml, json, etc.) #python
https://github.com/PyAr/pyafipws/wiki/PyAr-PSF-GSoC-2019-Final-Summary
GNU Lesser General Public License v3.0
2 stars 14 forks source link

Unit Tests for RG5259 (Actividades) #107

Open reingart opened 1 year ago

reingart commented 1 year ago

This methods need coverage:

We should at least have an unit test for each method in test_wsfev1.py

def test_agregar_actividad():
    wsfev1 = WSFEv1()
    wsfev1.CrearFactura()
    wsfev1.AgregarActividad(960990)
    assert wsfev1.factura["actividades"][0]["actividad_id"] == 960990

To quickly run it, just execute in the commend line:

pytest tests/test_wsfev1.py -k test_agregar_actividad

Tip: change autouse=False in conftest.py for function auth, to skip WSAA ticket generation.

HanslettTheDev commented 1 year ago

Those this actually test the web servers or just test cases to check the activation key Secondly It's a bit tight to work on the code of the web servers as they are in spanish