-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Advice or example of mocking the client for tests #681
Comments
repo |
Thank you @Atticuszz, I'll take a read and hope to understand it :) |
@philliphartin have you tried https://vcrpy.readthedocs.io/en/latest ? Basically, you keep aside a test account and use it with the API once. vcr-py will cache the responses and reuse them subsequently. A workaround like this might be your best bet in the absence of a dynamic & stateful mocking library. |
That's actually really cool @tinvaan. Certainly will save a lot of effort. Thanks |
I run my test in a special project. When running test, at the beggining my test load all my tables, functions, triggers, etc ... via psql command. Then it launch all my scenarios including business logic, and then when it finish, it drops all to clean it for the next test. @philliphartin I have a question. Do you use middleware for your project ? |
Is your feature request related to a problem? Please describe.
supabase-py
client.Describe the solution you'd like
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: