-
Notifications
You must be signed in to change notification settings - Fork 15
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
clearing a session's history for testing calls #31
Comments
perhaps another important piece of this puzzle is that I was imagining essentially creating a single, large |
dont think there is any specific vision. lib attempts to provide some tooling but how its used is up to the user. as for the session being shared, try using something like |
Thank you! That is exactly what I was looking for. Follow up question:
|
currently there is no equivalent for |
Cool. I will keep you updated and, likewise, let me know if you make any progress. Thanks! |
Hi,
I am using pytest and
assert_has_calls
to determine if my session makes certain queries, but I am running into the issue of having multiple tests on the same session. When this happens, the session still has the calls from the previous tests and so tests fail.what is the best way to get around this? creating a new session every time? wiping the current session's call history?
the other aspect is that i am loading my mocked DB with data via the
UnifiedAlchemyMagicMock(data=[ ...])
functionality but i don't want to have to do this for every test as it seems expensive and kind of clunky.thanks in advance!
The text was updated successfully, but these errors were encountered: