diff options
| author | Simon Charette <charette.s@gmail.com> | 2016-08-20 18:05:04 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2016-08-24 01:17:48 -0400 |
| commit | d5c4ea524679a787fe11c927448e44e95646096b (patch) | |
| tree | b0a6fdc2c3c50458b646f3399bbaab87713737ad /tests | |
| parent | d1757d8df486b689172d2584ded52fad916bcc33 (diff) | |
Fixed #27100 -- Included already applied migration changes in the pre-migrate state.
Refs #24100.
Thanks Tim for the review.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/migrate_signals/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/migrate_signals/tests.py b/tests/migrate_signals/tests.py index bb3ea0ccc9..84b6608f46 100644 --- a/tests/migrate_signals/tests.py +++ b/tests/migrate_signals/tests.py @@ -114,12 +114,17 @@ class MigrateSignalTests(TransactionTestCase): ['migrate_signals.Signal'] ) # Migrating with an empty plan. + pre_migrate_receiver = Receiver(signals.pre_migrate) post_migrate_receiver = Receiver(signals.post_migrate) management.call_command( 'migrate', database=MIGRATE_DATABASE, verbosity=MIGRATE_VERBOSITY, interactive=MIGRATE_INTERACTIVE, stdout=stdout, ) self.assertEqual( + [model._meta.label for model in pre_migrate_receiver.call_args['apps'].get_models()], + ['migrate_signals.Signal'] + ) + self.assertEqual( [model._meta.label for model in post_migrate_receiver.call_args['apps'].get_models()], ['migrate_signals.Signal'] ) |
