from urllib.request import urlopen
from requests import request
with vcr.use_cassette('fixtures/vcr_cassettes/deva.yaml') as cass:
r = request('get', 'http://jsonplaceholder.typicode.com/')
assert len(cass) == 1
with vcr.use_cassette('fixtures/vcr_cassettes/synopsis.yaml') as cass:
response = urlopen('http://www.zombo.com/').read()
assert len(cass) == 1
I am new to VCR, I am trying above code snippet.Above looks like VCR is recording second case urllib request & not the first one made by requests api.can you please let me know if requests api is supported or not, atleast as per doc I see its supported.Please let me know your thoughts.
Regards,Devaraj--
You received this message because you are subscribed to the Google Groups "vcr-maintainers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vcr-maintainers+unsubscribe@googlegroups.com.
To post to this group, send email to vcr-maintainers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vcr-maintainers/48767970-6621-46b9-ad2e-33b13553f119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This group is for maintainers of the VCR Ruby gem to discuss maintenance of that project. We're not able to provide support for ports of VCR in other languages like Python. You should reach out to the maintainers of the VCR port you are using.Thanks,Myron
On Thu, Nov 23, 2017 at 4:43 AM, Devaraj Gowda <devaraj4...@gmail.com> wrote:
from urllib.request import urlopen
from requests import requestwith vcr.use_cassette('fixtures/vcr_cassettes/deva.yaml') as cass:
r = request('get', 'http://jsonplaceholder.typicode.com/')assert len(cass) == 1
with vcr.use_cassette('fixtures/vcr_cassettes/synopsis.yaml') as cass:
response = urlopen('http://www.zombo.com/').read()
assert len(cass) == 1I am new to VCR, I am trying above code snippet.Above looks like VCR is recording second case urllib request & not the first one made by requests api.can you please let me know if requests api is supported or not, atleast as per doc I see its supported.Please let me know your thoughts.Regards,Devaraj
--
You received this message because you are subscribed to the Google Groups "vcr-maintainers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vcr-maintaine...@googlegroups.com.
To post to this group, send email to vcr-mai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vcr-maintainers/48767970-6621-46b9-ad2e-33b13553f119%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.