Need help reg VCR

171 views
Skip to first unread message

Devaraj Gowda

unread,
Nov 23, 2017, 7:43:33 AM11/23/17
to vcr-maintainers
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

Myron Marston

unread,
Nov 23, 2017, 11:34:19 AM11/23/17
to Devaraj Gowda, vcr-maintainers
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

--
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.

deva...@soroco.com

unread,
Nov 25, 2017, 2:03:49 AM11/25/17
to vcr-maintainers
Oh sure, Thanks for your time


On Thursday, November 23, 2017 at 10:04:19 PM UTC+5:30, Myron Marston wrote:
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 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-maintaine...@googlegroups.com.
To post to this group, send email to vcr-mai...@googlegroups.com.


This email and its attachments are confidential and intended solely for the use of persons to whom they are addressed. If you are not the named addressee, delete this email immediately, and notify the sender. Do not disseminate, distribute or copy this email. Any views or opinions presented in this email are solely those of the sender and do not necessarily represent those of Soroco and its affiliates.  Soroco and its affiliates do not accept liability for any errors or omissions or damage caused by any virus or other malicious code that may be inadvertently transmitted by this email.
Reply all
Reply to author
Forward
0 new messages