Install & Compatibility
Where this runs
tested against v0.1.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 21.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.000s · 22MB
21MB installed
● package 21MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
use_cassette
✓ from vcr_unittest import VCRMixin
✗ from vcr_unittest import use_cassette
VCRTestCase
✓ from vcr_unittest import VCRTestCase
VCRMixin
✓ from vcr_unittest import VCRMixin
Decorate a test method with @use_cassette to automatically record/replay HTTP interactions.
import unittest
from vcr_unittest import use_cassette
class TestMyAPI(unittest.TestCase):
@use_cassette('fixtures/cassettes/test_request.yaml')
def test_request(self):
import requests
resp = requests.get('http://httpbin.org/get')
self.assertEqual(resp.status_code, 200)
Upgrade
Version history
0.1.7latest on PyPI · released Sep 25, 2018
Audit
Dependencies
vcrpyrequiredCore library for recording HTTP interactions