Skip to content
Mariano Reingart edited this page Mar 26, 2022 · 1 revision

Installation

Just running make will install and execute the tests

In windows, venv.bat could be executed to prepare the development environment

Configure

Sample configuration files are in the conf folder:

  • Linux: cp conf/*.ini .
  • Windows: copy conf\*.ini .

You'll need a certificate and private key to communicate with AFIP

wget "https://www.sistemasagiles.com.ar/soft/pyafipws/reingart2021.zip" -O reingart2021.zip
unzip reingart2021.zip

Run

python setup.py install should be run so modules are properly installed

You could execute the scripts: python -m pyafipws.wsaa

Test

Then run: pytest to execute the tests

We should see how to store and update the VCR traffic recordings.

PyTest fixtures should be used to instantiate the WSAA and WSFEv1 objects, specially tokens for testing