mirror of
https://github.com/django/django.git
synced 2025-04-16 21:34:37 +00:00
[1.11.x] 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 Backport of 8e352876c337332b45a72da8bbccad2830c7b1e0 from master.
This commit is contained in:
parent
ab0df82b40
commit
38e1169067
@ -1107,7 +1107,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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user