# Testing Who May Do What

Testing Who May Do What: Testing Protected Routes.

Updated: November 19, 2026

1. [Testing Protected Routes](https://www.ask-codey.com/lessons/fastapi-auth-testing-protected-routes) (Journeyman): Tests for an API's rules about who may do what sign in inside a fixture and send the token in the Authorization header, try each rule as each kind of user and once with no token, and can override get_current_user with dependency_overrides as a shortcut, knowing it skips the token check.

Source: https://www.ask-codey.com/courses/python-web-apis/topics/fastapi-testing-access
