Aron Griffis
3e5553c56a
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()
2015-08-23 16:00:52 -04:00
Ivan Malison
ae5580c8f9
style changes in test_vcr.py
2015-08-22 18:59:59 -07:00
Ivan Malison
f342f92f03
additional_matchers test
2015-08-22 18:58:12 -07:00
Thomas Grainger
41949f7dc6
use conditional requirements for backport libraries Fixes #147
2015-07-02 09:34:27 +01:00
Chase Sterling
5fc33c7e70
Add tests for explicitly specifying a path when library dir is defined
2015-05-15 19:06:05 -04:00
Ivan Malison
2323b9da5f
Automatically generate cassette names from function names. Add
...
`path_transformer` and `func_path_generator`. Closes #151 .
2015-05-10 03:22:43 -07:00
Ivan Malison
881138cb8d
inject_cassette fallout.
2015-04-01 17:46:35 -07:00
Ivan Malison
639dba6f7a
Write test for #145 that checks behavior of with_current_defaults.
2015-04-01 17:30:05 -07:00
Ivan Malison
b9bdc6401d
inject_cassette kwarg.
2015-04-01 17:30:05 -07:00
Ivan Malison
c0a22df7ed
Add ability to add custom patches to vcr and cassettes.
2015-01-08 10:54:27 -08:00
Ivan Malison
0871c3b87c
Remove instance variables for filter_headers, filter_query_params, ignore_localhost and ignore_hosts. These still exist on the VCR object, but they are automatically translated into a filter function when passed to the cassette.
2014-09-22 17:57:22 -07:00
Ivan Malison
b046ee4bb1
Fix use_cassette decorator in python 2 by using wrapt.decorator. Add wrapt as dependency.
2014-09-22 16:40:09 -07:00
Ivan Malison
958aac3af3
Use mock for patching http connection objects.
2014-09-18 05:32:55 -07:00
Ivan Malison
643a4c91ee
Change use_cassette to pass a function to CassetteContextDecorator so that changes to the default settings on the vcr properly propogate.
2014-09-18 02:52:44 -07:00
Ivan Malison
472cc3bffe
use_cassette -> CassetteContextDecorator
2014-09-17 23:22:43 -07:00