From 8e352876c337332b45a72da8bbccad2830c7b1e0 Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Tue, 9 May 2017 00:55:54 +0200 Subject: [PATCH] Refs #22397 -- Removed model in test cleanup The test was failing when using --keepdb due to a pre-existing PonyStables model. Thanks Florian Apolloner for the report --- tests/migrations/test_operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index a6f713e321e..7b2608936d9 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -1105,7 +1105,7 @@ class OperationTests(OperationTestBase): ]) self.assertTableExists("test_rmflmmwt_ponystables") - operations = [migrations.RemoveField("Pony", "stables")] + operations = [migrations.RemoveField("Pony", "stables"), migrations.DeleteModel("PonyStables")] self.apply_operations("test_rmflmmwt", project_state, operations=operations) def test_remove_field(self):