1. Dan Jacob
  2. django-bootstrap-template

Source

django-bootstrap-template / template / bin / runtests.py

#!/usr/bin/env python
import os, sys

if __name__ == "__main__":
    sys.path.append(os.path.dirname(os.path.dirname(__file__)))

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings.testing")

    from django.core.management import call_command
    from django.conf import settings

    apps_for_testing = [app[16:] for app in settings.INSTALLED_APPS
            if app.startswith("{{ project_name }}.apps")]

    call_command("test", *apps_for_testing)