PLAT-1780 Remove dependency on django-extensions

This commit is contained in:
Jeremy Bowman
2017-10-24 18:41:14 -04:00
parent 8afa17f31d
commit ba06372cac
23 changed files with 298 additions and 36 deletions

View File

@@ -46,12 +46,12 @@ for db in "${database_order[@]}"; do
# Clear out the test database
#
# We are using the django-extensions's reset_db command which uses "DROP DATABASE" and
# We are using the reset_db command which uses "DROP DATABASE" and
# "CREATE DATABASE" in case the tests are being run in an environment (e.g. devstack
# or a jenkins worker environment) that already ran tests on another commit that had
# different migrations that created, dropped, or altered tables.
echo "Issuing a reset_db command to the $db bok_choy MySQL database."
./manage.py lms --settings $SETTINGS reset_db --traceback --noinput --router $db
./manage.py lms --settings $SETTINGS reset_db --traceback --router $db
# If there are cached database schemas/data, load them
if [[ ! -f $DB_CACHE_DIR/bok_choy_schema_$db.sql || ! -f $DB_CACHE_DIR/bok_choy_data_$db.json || ! -f $DB_CACHE_DIR/bok_choy_migrations_data_$db.sql ]]; then