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

#687 issue solution #1243

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

#687 issue solution #1243

wants to merge 3 commits into from

Conversation

mixa2130
Copy link

@mixa2130 mixa2130 commented Jul 2, 2023

Hello @frankie567 !
This pull request is my view of issue #687 solution. It's just a first approach, just for sqlalchemy example. If you'll find out such solution ok - I'll add tests for other examples.

Some words about the code:

  • fixture jwt_authorized_async_client represents authorized httpx.AsyncClient session which allows user to make requests to protected endpoints;
  • fixture async_client is an unauthorized session to check the correctness of the authorization system;
  • fixture override_current_user_async_client overrides current_active_user dependency to mock the auth system(least preferred option).

@mixa2130 mixa2130 changed the title #687 issue #687 issue solution Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant