Kaydet (Commit) 01966bb2 authored tarafından Tim Graham's avatar Tim Graham

Fixed typo in tests/migrations/test_autodetector.py.

üst 867d287b
...@@ -1003,7 +1003,7 @@ class AutodetectorTests(TestCase): ...@@ -1003,7 +1003,7 @@ class AutodetectorTests(TestCase):
""" """
# Explicitly testing for not specified, since this is the case after # Explicitly testing for not specified, since this is the case after
# a CreateModel operation w/o any definition on the original model # 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 # Explicitly testing for None, since this was the issue in #23452 after
# a AlterFooTogether operation with e.g. () as value # a AlterFooTogether operation with e.g. () as value
model_state_none = ModelState("a", "model", [ model_state_none = ModelState("a", "model", [
...@@ -1031,13 +1031,13 @@ class AutodetectorTests(TestCase): ...@@ -1031,13 +1031,13 @@ class AutodetectorTests(TestCase):
self.fail('Created operation(s) %s from %s' % (ops, msg)) self.fail('Created operation(s) %s from %s' % (ops, msg))
tests = ( tests = (
(model_state_not_secified, model_state_not_secified, '"not specified" to "not specified"'), (model_state_not_specified, model_state_not_specified, '"not specified" to "not specified"'),
(model_state_not_secified, model_state_none, '"not specified" to "None"'), (model_state_not_specified, model_state_none, '"not specified" to "None"'),
(model_state_not_secified, model_state_empty, '"not specified" to "empty"'), (model_state_not_specified, model_state_empty, '"not specified" to "empty"'),
(model_state_none, model_state_not_secified, '"None" to "not specified"'), (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_none, '"None" to "None"'),
(model_state_none, model_state_empty, '"None" to "empty"'), (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_none, '"empty" to "None"'),
(model_state_empty, model_state_empty, '"empty" to "empty"'), (model_state_empty, model_state_empty, '"empty" to "empty"'),
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment