Skip to content

Commit

Permalink
Fixes testing under Django 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanoGuerrini committed Feb 3, 2015
1 parent 30258ef commit 513d6f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@

MIDDLEWARE_CLASSES = ()

MAAT_FLUSH_BATCH_SIZE = 100 # To avoid sqlite issues
MAAT_FLUSH_BATCH_SIZE = 100 # To avoid sqlite issues

# This will prevent the tests from running the migrations that come with the app
# otherwise the test models won't be created.
# http://stackoverflow.com/questions/25161425/disable-migrations-when-running-unit-tests-in-django-1-7
MIGRATION_MODULES = {'djangomaat': 'djangomaat.no_migrations_here'}

0 comments on commit 513d6f9

Please sign in to comment.