Use betamax cassettes to record & replay requests to PyPI

This commit is contained in:
Karolina Surma
2021-09-14 16:55:32 +02:00
parent 6281df9766
commit 8e3d0e9645
5 changed files with 22 additions and 13 deletions
+3 -2
View File
@@ -37,11 +37,12 @@ python conf2spec.py -f tests/test_config/pyp2spec_click.conf
Test framework used in the project is pytest.
The tests use pytest-regresssions extension used to generate spec files to compare.
The tests use betamax to record API calls and replay them from the prerecorded cassettes.
To run the tests, run following commands:
```
python -m pip install pytest pytest-regresssions
python -m pytest
python -m pip install pytest pytest-regresssions betamax
python -m pytest -vv
```