Skip to content
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 documentation regarding testing #687

Open
frankie567 opened this issue Aug 12, 2021 · 3 comments
Open

Add documentation regarding testing #687

frankie567 opened this issue Aug 12, 2021 · 3 comments
Labels
documentation Improvements or additions to documentation polar Issues that can be backed through Polar

Comments

@frankie567
Copy link
Member

frankie567 commented Aug 12, 2021

Following discussion #672, we should add details in the documentation about how you can properly override the user dependency during testing.

Fund with Polar
@frankie567 frankie567 added the documentation Improvements or additions to documentation label Aug 12, 2021
@taylor-shift
Copy link

@frankie567
Copy link
Member Author

@luisroel91 No, it will be slightly different.

The goal is to add some guidance to properly write unit tests with FastAPI Users, especially how to use the dependency_overrides mechanism of FastAPI to "mock" the current_user dependency.

I've added some insights here: #830 (comment)

@frankie567 frankie567 added polar Issues that can be backed through Polar and removed polar Issues that can be backed through Polar labels May 31, 2023
@mixa2130
Copy link

mixa2130 commented Jul 2, 2023

@frankie567 added pr to show the example of testing fastapi-users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation polar Issues that can be backed through Polar
Projects
None yet
Development

No branches or pull requests

3 participants