-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record matcher #641
base: master
Are you sure you want to change the base?
Record matcher #641
Conversation
# Conflicts: # responses/tests/test_recorder.py
added header matcher recording
}, | ||
"strict_match": False, | ||
}, | ||
"matcher_import_path": "responses.matchers", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @markstory
pls have a look on the draft of the recorder.
I have a question/concern how to proceed with replay
considering that we need to support custom matchers, we probably want to import matchers as well.
I found a way how to extract the location of the mather. however, then we need to do import during runtime and local to each function, which does not sound really smart
what could be the options?
I think asking users to import required matchers defeats the purpose of record/replay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm, importing userland code is possible but it could get messy. I think we're also taking a risk that userland matcher parameters will be 'serializable' into JSON, which isn't guaranteed. We could require that in order to use recording 🤷
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
closes #639
Current PR proposes the implementation of recorder for matchers into yaml (or any other compatible format)