Ticket #5097: contributing.txt.diff

File contributing.txt.diff, 1.0 KB (added by Nicola Larosa <nico@…>, 12 years ago)
  • contributing.txt

     
    545553    ./runtests.py --settings=path.to.django.settings
    546554
    547555Yes, the unit tests need a settings module, but only for database connection
    548 info -- the ``DATABASE_NAME`` (required, but will be ignored),
    549 ``DATABASE_ENGINE``, ``DATABASE_USER`` and ``DATABASE_PASSWORD`` settings. You
    550 will also need a ``ROOT_URLCONF`` setting (its value is ignored; it just needs
    551 to be present) and a ``SITE_ID`` setting (any non-zero integer value will do)
    552 in order for all the tests to pass.
     556info, with the ``DATABASE_ENGINE`` setting. You will also need a ``ROOT_URLCONF``
     557setting (its value is ignored; it just needs to be present) and a ``SITE_ID``
     558setting (any non-zero integer value will do) in order for all the tests to pass.
    553559
    554560The unit tests will not touch your existing databases; they create a new
    555561database, called ``django_test_db``, which is deleted when the tests are
Back to Top