summaryrefslogtreecommitdiff
path: root/tests/migrations/test_executor.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2013-07-25 13:52:35 +0100
committerAndrew Godwin <andrew@aeracode.org>2013-07-25 13:52:35 +0100
commit00276e0414ce796a71a28d4c675a22b041aa3450 (patch)
tree0725eefc6cdf5adfa51cfdca16feb890e3ec758c /tests/migrations/test_executor.py
parent162f7b938f6cff91b1e4d6086ddcc88cbb1a1cd6 (diff)
downloaddjango-00276e0414ce796a71a28d4c675a22b041aa3450.tar.gz
Add tests for the migrate command and fix a bug they exposed
Diffstat (limited to 'tests/migrations/test_executor.py')
-rw-r--r--tests/migrations/test_executor.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/migrations/test_executor.py b/tests/migrations/test_executor.py
index c426defe4a..ddbfa78db7 100644
--- a/tests/migrations/test_executor.py
+++ b/tests/migrations/test_executor.py
@@ -20,6 +20,7 @@ class ExecutorTests(TransactionTestCase):
Tests running a simple set of migrations.
"""
executor = MigrationExecutor(connection)
+ executor.recorder.flush()
# Let's look at the plan first and make sure it's up to scratch
plan = executor.migration_plan([("migrations", "0002_second")])
self.assertEqual(