diff options
author | Tim Graham <timograham@gmail.com> | 2015-08-20 14:51:42 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-08-20 14:52:41 -0400 |
commit | c0f9957cea3366d0db64bad5fcb41203f5ebc3b9 (patch) | |
tree | ea0edcbcbadf39a432f537c5678f6ebfbc0204df | |
parent | 6c61cea83ad220c38220523bf5babe561b6557e9 (diff) | |
download | django-c0f9957cea3366d0db64bad5fcb41203f5ebc3b9.tar.gz |
[1.7.x] Fixed typo in tests/migrations/test_autodetector.py.
Backport of 01966bb2a779f68d1a371acb1bf814fac7bb5132 from master
-rw-r--r-- | tests/migrations/test_autodetector.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/migrations/test_autodetector.py b/tests/migrations/test_autodetector.py index 047862c390..e91a5d167d 100644 --- a/tests/migrations/test_autodetector.py +++ b/tests/migrations/test_autodetector.py @@ -823,7 +823,7 @@ class AutodetectorTests(TestCase): """ # Explicitly testing for not specified, since this is the case after # a CreateModel operation w/o any definition on the original model - model_state_not_secified = ModelState("a", "model", [("id", models.AutoField(primary_key=True))]) + model_state_not_specified = ModelState("a", "model", [("id", models.AutoField(primary_key=True))]) # Explicitly testing for None, since this was the issue in #23452 after # a AlterFooTogether operation with e.g. () as value model_state_none = ModelState("a", "model", [ @@ -851,13 +851,13 @@ class AutodetectorTests(TestCase): self.fail('Created operation(s) %s from %s' % (ops, msg)) tests = ( - (model_state_not_secified, model_state_not_secified, '"not specified" to "not specified"'), - (model_state_not_secified, model_state_none, '"not specified" to "None"'), - (model_state_not_secified, model_state_empty, '"not specified" to "empty"'), - (model_state_none, model_state_not_secified, '"None" to "not specified"'), + (model_state_not_specified, model_state_not_specified, '"not specified" to "not specified"'), + (model_state_not_specified, model_state_none, '"not specified" to "None"'), + (model_state_not_specified, model_state_empty, '"not specified" to "empty"'), + (model_state_none, model_state_not_specified, '"None" to "not specified"'), (model_state_none, model_state_none, '"None" to "None"'), (model_state_none, model_state_empty, '"None" to "empty"'), - (model_state_empty, model_state_not_secified, '"empty" to "not specified"'), + (model_state_empty, model_state_not_specified, '"empty" to "not specified"'), (model_state_empty, model_state_none, '"empty" to "None"'), (model_state_empty, model_state_empty, '"empty" to "empty"'), ) |