mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed typos in migrations tests, comments, and error message.
This commit is contained in:
parent
52f9cfee9f
commit
202d3e193a
3 changed files with 7 additions and 4 deletions
|
|
@ -182,7 +182,7 @@ class LoaderTests(TestCase):
|
|||
msg = "There is more than one migration for 'migrations' with the prefix '0'"
|
||||
with self.assertRaisesMessage(AmbiguityError, msg):
|
||||
migration_loader.get_migration_by_prefix("migrations", "0")
|
||||
msg = "There no migrations for 'migrations' with the prefix 'blarg'"
|
||||
msg = "There is no migration for 'migrations' with the prefix 'blarg'"
|
||||
with self.assertRaisesMessage(KeyError, msg):
|
||||
migration_loader.get_migration_by_prefix("migrations", "blarg")
|
||||
|
||||
|
|
@ -299,7 +299,7 @@ class LoaderTests(TestCase):
|
|||
loader.build_graph()
|
||||
self.assertEqual(num_nodes(), 3)
|
||||
|
||||
# Starting at 5 to 7 we are passed the squashed migrations
|
||||
# Starting at 5 to 7 we are past the squashed migrations.
|
||||
self.record_applied(recorder, 'migrations', '5_auto')
|
||||
loader.build_graph()
|
||||
self.assertEqual(num_nodes(), 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue