-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
[17.0][FIX] fastapi: partner env for tests #479
Conversation
`partner` record leaks default env and even if you specify `default_fastapi_running_user` to be custom user, when running tests, running env will still have default (superuser), which makes testing outcomes very different than you might expect. Setting `partner` to use env with specified user, makes sure it won't leak from there.
Hi @lmignon, |
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.
Thank you for the fix, it makes sense.
@lmignon when you plan to merge it? |
I would like to collect more feedback from others users. |
Seems fair and would explain some false negative I got 👍 |
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 9d24e36. Thanks a lot for contributing to OCA. ❤️ |
partner
record leaks default env and even if you specifydefault_fastapi_running_user
to be custom user, when running tests, running env will still have default (superuser), which makes testing outcomes very different than you might expect.Setting
partner
to use env with specified user, makes sure it won't leak from there.