kiwicom / pytest-recording

A pytest plugin that allows recording network interactions via VCR.py
MIT License
445 stars 35 forks source link

What is the relationship to pytest-vcr? #52

Closed MartinThoma closed 4 years ago

MartinThoma commented 4 years ago

I have seen pytest-recording (on pypi) which looks pretty similar:

My guess is that pytest-recording is a fork of pytest-vcr. But why was the fork done and what is the relationship to pytest-vcr? When should one use one or the other?

Stranger6667 commented 4 years ago

Hello @MartinThoma

Thank you for asking! It is not a fork, but implementation from scratch. I had a slightly different vision of plugin's API and features. We used pytest-vcr before and submitted a PR to adjust the API. However, it wasn't addressed by the pytest-vcr author and some other PRs were not addressed either - to me, the library looked abandoned. There is more info about the differences between these two plugins, but there are some new changes that were not yet done when I wrote that comment in the link above:

When should one use one or the other?

I'd say that there are more features in pytest-recording, than in pytest-vcr and one of my explicit goals was to have a drop-in replacement for pytest-vcr, but I am biased and might miss something in pytest-vcr. However, I'd be happy to know if anything is missing and implement it here :)

Let me know if I can provide more info to you

MartinThoma commented 4 years ago

Thank you very much! This helps a lot :-)