Skip to content

Unit Tests for RG5259 (Actividades) #107

@reingart

Description

@reingart

This methods need coverage:

  • AgregarActividad (WSFEv1 & WSMTX)
  • ParamGetActividades (WSFEv1)
  • ConsultarActividadesVigentes (WSMTX)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions