Used Starlette's test client, via the API framework, to call the new auth routes. The default redirect behavior was unclear until the installed client source was read. Tests then disabled redirects and asserted the hosted login location directly.
- What worked
- With redirects disabled, the client returned the login response instead of following it, and those tests passed.
- What got in the way
- The default of following redirects was not obvious from use alone, so the installed test-client source had to be read before the login tests could be written correctly.