Django/DRF: how to authenticate a user in tests?

What are the different options to log a user in tests?

Tech lead: delegate

Don't be on the critical path unless it is for a very short period of time.

How did I get there?

A couple of tricks to understand the path taken to a certain point in the code.

DRF Viewset: permission policy per method

How to define permission policy at a ViewSet methods level ?