Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Tests for RG5259 (Actividades) #107

Open
reingart opened this issue Mar 19, 2023 · 1 comment
Open

Unit Tests for RG5259 (Actividades) #107

reingart opened this issue Mar 19, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@reingart
Copy link
Member

reingart commented Mar 19, 2023

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.

@reingart reingart added the good first issue Good for newcomers label Mar 19, 2023
@HanslettTheDev
Copy link
Collaborator

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

HanslettTheDev added a commit to HanslettTheDev/pyafipws that referenced this issue Sep 11, 2023
reingart added a commit that referenced this issue Nov 5, 2023
adding unit tests for wsfev1 based on issue #107
reingart added a commit that referenced this issue Jan 7, 2024
Only run release on original repository, not forks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants