kiwicom / pytest-recording

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

[FEATURE] Parameterize vcr_config #78

Open dAnjou opened 2 years ago

dAnjou commented 2 years ago

Is your feature request related to a problem? Please describe.

I'm working on a library that supports multiple web services behind a single interface.

Now I've written some tests for that interface and would like to run them for each of the web services I support. This is where pytest's fixture parameterization shines and it works well without VCR in the picture, the implementations simply make real requests.

Obviously that's not ideal, so I wanna use VCR. I need different configurations for each web service though. Unfortunately I can't find a way to parameterize vcr_config.

Describe the solution you'd like

No idea, sorry.

Describe alternatives you've considered

I guess I could use the vcr fixture somehow?