Skip to content

Commit 3ef50a7

Browse files
MarkusHtimgraham
authored andcommitted
Fixed reverse test execution for migration manager tests
Thanks to Tim Graham for reporting the issue; refs #23822
1 parent d8f3b86 commit 3ef50a7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/migrations/test_writer.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
from django.utils.translation import ugettext_lazy as _
2020
from django.utils.timezone import get_default_timezone, utc, FixedOffset
2121

22-
from custom_managers import models as custom_manager_models
2322
import custom_migration_operations.operations
2423
import custom_migration_operations.more_operations
2524

25+
from .models import FoodQuerySet, FoodManager
26+
2627

2728
class TestModel1(object):
2829
def upload_to(self):
@@ -356,8 +357,8 @@ def deconstruct(self):
356357
def test_serialize_managers(self):
357358
self.assertSerializedEqual(models.Manager())
358359
self.assertSerializedResultEqual(
359-
custom_manager_models.CustomQuerySet.as_manager(),
360-
('custom_managers.models.CustomQuerySet.as_manager()', {'import custom_managers.models'})
360+
FoodQuerySet.as_manager(),
361+
('migrations.models.FoodQuerySet.as_manager()', {'import migrations.models'})
361362
)
362-
self.assertSerializedEqual(custom_manager_models.DeconstructibleCustomManager('a', 'b'))
363-
self.assertSerializedEqual(custom_manager_models.DeconstructibleCustomManager('x', 'y', c=3, d=4))
363+
self.assertSerializedEqual(FoodManager('a', 'b'))
364+
self.assertSerializedEqual(FoodManager('x', 'y', c=3, d=4))

0 commit comments

Comments
 (0)