-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add APIs for generic storage capability #3
Comments
How this will looks like? Something like if state is State.RECORDING:
data = foo()
put("data", data)
else:
data = get("data") I see many problems with such approach, and maybe this should be different lib, I'm not sure. |
Yes, this is the basic idea I had. It could be a separate lib since it's a more general usage than this library, maybe pytest-automock can even depend on that new library as the storage provider. What are the problems you see with this approach? |
The problem here, as I see it, that |
I was thinking that when someone wants to use this capability, the code that touches |
Allow tests to store state data that can be used in the future:
This API is very generic and can be used to implement many capabilities.
For example, say I want to make sure my test performance doesn't degrade over time: I would store an initial benchmark in the recording phase and validate against that benchmark in future runs.
The text was updated successfully, but these errors were encountered: