]> khamidou — GitHub mirrors - vcrpy.git/commit
Don't drop passed-in before_record_response
authorAron Griffis <aron@arongriffis.com>
Sun, 23 Aug 2015 14:25:23 +0000 (10:25 -0400)
committerAron Griffis <aron@arongriffis.com>
Sun, 23 Aug 2015 20:00:52 +0000 (16:00 -0400)
commit3e5553c56a61cb4c02112f7a3ade5c9d86209e70
treee645f02cff58d8b0d0a7f87e71697dfea0e89847
parenta569dd4dc83795aedba310711086bbbe443bc249
Don't drop passed-in before_record_response

This is an actual bugfix. If before_record_response is passed into VCR as
an iterable then it won't be included in filter_functions. This commit
repairs the logic to separate the tests (just as it's already done for
before_record_request).

Also use .extend() rather than looping on .append()
tests/unit/test_vcr.py
vcr/config.py