Closed paxcodes closed 4 years ago
Hi!
At the moment it is not possible - I'll work on this feature
I think we can declare a new pytest hook, so it will be backward-compatible. Something like this:
def pytest_recording_configure(config, vcr):
vcr.register_matcher(...)
This is released in 0.8.0. Let me know if it works for you :)
Thanks for the quick response there @Stranger6667! Yes, I was able to register my matcher. 👍🏼
I would like to register my own matcher.
I looked at
pytest-recording
's source and noticed vcr is in _vcr.py ; Since it starts with an underscore, I'm guessing that it's not meant to be imported outside of the package?How do I register my own matcher with pytest-recording?