Commit 89a7e425 by Brian Beggs

Merge pull request #10742 from edx/bbeggs/acceptance-test-migration-fix

Migrations will now run during Acceptance tests
parents 46150800 40af1987
......@@ -195,3 +195,7 @@ SECRET_KEY = uuid.uuid4().hex
############################### PIPELINE #######################################
PIPELINE_ENABLED = False
# We want to make sure that any new migrations are run
# see https://groups.google.com/forum/#!msg/django-developers/PWPj3etj3-U/kCl6pMsQYYoJ
MIGRATION_MODULES = {}
......@@ -126,8 +126,8 @@ class AcceptanceTestSuite(TestSuite):
sh("cp {db_cache} {db}".format(db_cache=self.db_cache, db=self.db))
# Run migrations to update the db, starting from its cached state
sh("./manage.py lms --settings acceptance migrate --traceback --noinput")
sh("./manage.py cms --settings acceptance migrate --traceback --noinput")
sh("./manage.py lms --settings acceptance migrate --traceback --noinput --fake-initial")
sh("./manage.py cms --settings acceptance migrate --traceback --noinput --fake-initial")
else:
# If no cached database exists, syncdb before migrating, then create the cache
sh("./manage.py lms --settings acceptance migrate --traceback --noinput")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment