4👍
✅
You could change the AUTHENTICATION_BACKENDS
setting in the setUp
method, then change it back in tearDown
. This question’s accepted answer has an example just that, but with a different setting.
Source:stackexchange.com