forked from reingart/pyafipws
-
Notifications
You must be signed in to change notification settings - Fork 17
Dev HOW TO
Mariano Reingart edited this page Mar 26, 2022
·
1 revision
Just running make
will install and execute the tests
In windows, venv.bat
could be executed to prepare the development environment
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
python setup.py install
should be run so modules are properly installed
You could execute the scripts: python -m pyafipws.wsaa
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