Scripts
Version 1 (Paul Carensac, 05/13/2016 03:50 pm)
1 | 1 | Paul Carensac | h1. Scripts |
---|---|---|---|
2 | 1 | Paul Carensac | |
3 | 1 | Paul Carensac | Explanations about the scripts. They are located in src/scripts/ folder |
4 | 1 | Paul Carensac | |
5 | 1 | Paul Carensac | --- |
6 | 1 | Paul Carensac | |
7 | 1 | Paul Carensac | h3. celery_test.sh |
8 | 1 | Paul Carensac | |
9 | 1 | Paul Carensac | * *Goal* |
10 | 1 | Paul Carensac | Run tests using the production database in order to see the celery results (celery is always running on production database). |
11 | 1 | Paul Carensac | |
12 | 1 | Paul Carensac | * *How it works ?* |
13 | 1 | Paul Carensac | |
14 | 1 | Paul Carensac | * You need to give the app / TestClass / test_name to run it (prevents a fail test launching, polluting the production DB) |
15 | 1 | Paul Carensac | * Moves to src/ folder |
16 | 1 | Paul Carensac | * Uses sed command to set CELERY_TEST variable to 'True' in settings.py |
17 | 1 | Paul Carensac | * The consequence of it is that the production DB will be chosen in settings.py |
18 | 1 | Paul Carensac | * Runs the test(s) you gave with --kepdb and --nomigrations in order to preserve the production DB |