Version 1/10 - Next » - Current version
Paul Carensac, 05/13/2016 03:50 pm


Scripts

Explanations about the scripts. They are located in src/scripts/ folder


celery_test.sh

  • Goal
    Run tests using the production database in order to see the celery results (celery is always running on production database).
  • How it works ?
    • You need to give the app / TestClass / test_name to run it (prevents a fail test launching, polluting the production DB)
    • Moves to src/ folder
    • Uses sed command to set CELERY_TEST variable to 'True' in settings.py
    • The consequence of it is that the production DB will be chosen in settings.py
    • Runs the test(s) you gave with --kepdb and --nomigrations in order to preserve the production DB