Merge pull request #10742 from edx/bbeggs/acceptance-test-migration-fix
Migrations will now run during Acceptance tests
This commit is contained in:
Binary file not shown.
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user