When I try to test any app with command (I noticed it when I tried to deploy myproject using fabric, which uses this command):
python manage.py test appname
A superuser account is the easiest way to guarantee smooth testing. so a simpler way of making the django user su is to do ALTER django WITH SUPERUSER .
django
ALTER django WITH SUPERUSER
for more information https://www.postgresql.org/docs/current/sql-alteruser.html