Ticket #10791: 10791-django-gis-test-runner-respect-interactive.diff

File 10791-django-gis-test-runner-respect-interactive.diff, 623 bytes (added by Sean Legassick, 15 years ago)
  • django/contrib/gis/tests/__init__.py

     
    171171    old_name = settings.DATABASE_NAME
    172172
    173173    # Creating the test spatial database.
    174     create_test_spatial_db(verbosity=verbosity)
     174    create_test_spatial_db(verbosity=verbosity, autoclobber=not interactive)
    175175
    176176    # The suite may be passed in manually, e.g., when we run the GeoDjango test,
    177177    # we want to build it and pass it in due to some customizations.  Otherwise,
Back to Top