1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fix some small errors in the tests

This commit is contained in:
Andrew Godwin
2013-08-23 12:07:43 +01:00
parent beefac8aae
commit ac45f9c9c5
4 changed files with 18 additions and 10 deletions

View File

@@ -38,6 +38,11 @@ class ExecutorTests(TransactionTestCase):
# Are the tables there now?
self.assertIn("migrations_author", connection.introspection.get_table_list(connection.cursor()))
self.assertIn("migrations_book", connection.introspection.get_table_list(connection.cursor()))
# Alright, let's undo what we did
executor.migrate([("migrations", None)])
# Are the tables gone?
self.assertNotIn("migrations_author", connection.introspection.get_table_list(connection.cursor()))
self.assertNotIn("migrations_book", connection.introspection.get_table_list(connection.cursor()))
@override_settings(MIGRATION_MODULES={"migrations": "migrations.test_migrations", "sessions": "migrations.test_migrations_2"})
def test_empty_plan(self):