unittests.rst 869 B

123456789101112131415161718192021
  1. Unit Test Integration
  2. =====================
  3. By default, South's syncdb command will also apply migrations if it's run in
  4. non-interactive mode, which includes when you're running tests - it will run
  5. every migration every time you run your tests.
  6. If you want the test runner to use syncdb instead of migrate - for example, if
  7. your migrations are taking way too long to apply - simply set
  8. ``SOUTH_TESTS_MIGRATE = False`` in settings.py.
  9. South's own unit tests
  10. ----------------------
  11. South has its own set of unit tests; these will also be run when you run
  12. ./manage.py test. They do some fiddling with Django internals to set up a
  13. proper test environment; it's non-destructive, but if it's fouling up your own
  14. tests please submit a ticket about it.
  15. You can also set ``SKIP_SOUTH_TESTS=True`` in settings.py to stop South's tests
  16. running, should they be causing issues.