[Django]-Run Python/Django Management Command from a UnitTest/WebTest

64👍

✅

Django documentation on management commands might help, it describes how to call them from python code.

Basically you need something like this:

from django.core import management
management.call_command( ... )

Leave a comment