2 Matching Annotations
- Mar 2022
-
www.pluralsight.com www.pluralsight.com
-
VCR.py works primarily via the @vcr decorator. You can import this decorator by writing: import vcr.
How VCR.py works
-
The VCR.py library records the responses from HTTP requests made within your unit tests. The first time you run your tests using VCR.py is like any previous run. But the after VCR.py has had the chance to run once and record, all subsequent tests are:Fast! No more waiting for slow HTTP requests and responses in your tests.Deterministic. Every test is repeatable since they run off of previously recorded responses.Offline-capable! Every test can now run offline.
VCR.py library to speed up Python HTTP tests
-