Skip to content

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.

1 participant