diff options
| author | luz.paz <luzpaz@users.noreply.github.com> | 2018-08-01 12:55:53 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-08-01 16:09:22 -0400 |
| commit | 97e637a87fb45c4de970cca6cb783d93473c9d15 (patch) | |
| tree | f2bc4b9a102aa1277005ee469b6f7e390c925c8d /tests | |
| parent | 4263cd0e095c55a1011e5bf0746d651126a8da5f (diff) | |
Fixed typos in comments and docs.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/admin_changelist/tests.py | 2 | ||||
| -rw-r--r-- | tests/admin_views/tests.py | 6 | ||||
| -rw-r--r-- | tests/dbshell/test_postgresql_psycopg2.py | 2 | ||||
| -rw-r--r-- | tests/forms_tests/widget_tests/test_selectdatewidget.py | 2 | ||||
| -rw-r--r-- | tests/httpwrappers/tests.py | 2 | ||||
| -rw-r--r-- | tests/indexes/tests.py | 2 | ||||
| -rw-r--r-- | tests/pagination/tests.py | 2 | ||||
| -rw-r--r-- | tests/template_tests/syntax_tests/test_cache.py | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py index 6c9b424a5a..c12bfc7c93 100644 --- a/tests/admin_changelist/tests.py +++ b/tests/admin_changelist/tests.py @@ -347,7 +347,7 @@ class ChangeListTests(TestCase): """ Regression test for #13902: When using a ManyToMany in list_filter, results shouldn't appear more than once. Model managed in the - admin inherits from the one that defins the relationship. + admin inherits from the one that defines the relationship. """ lead = Musician.objects.create(name='John') four = Quartet.objects.create(name='The Beatles') diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index fe9a02e37a..6b1d23e31e 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1760,7 +1760,7 @@ class AdminViewPermissionsTest(TestCase): self.client.get(reverse('admin:logout')) # view user should be able to view the article but not change any of them - # (the POST can be sent, but no modification occures) + # (the POST can be sent, but no modification occurs) self.client.force_login(self.viewuser) response = self.client.get(article_changelist_url) self.assertEqual(response.status_code, 200) @@ -2240,7 +2240,7 @@ class AdminViewPermissionsTest(TestCase): def test_post_save_message_no_forbidden_links_visible(self): """ Post-save message shouldn't contain a link to the change form if the - user doen't have the change permission. + user doesn't have the change permission. """ self.client.force_login(self.adduser) # Emulate Article creation for user with add-only permission. @@ -3607,7 +3607,7 @@ class AdminCustomQuerysetTest(TestCase): # Test for #14529. only() is used in ModelAdmin.get_queryset() # model has __str__ method - t = Telegram.objects.create(title="Frist Telegram") + t = Telegram.objects.create(title="First Telegram") self.assertEqual(Telegram.objects.count(), 1) response = self.client.get(reverse('admin:admin_views_telegram_change', args=(t.pk,))) self.assertEqual(response.status_code, 200) diff --git a/tests/dbshell/test_postgresql_psycopg2.py b/tests/dbshell/test_postgresql_psycopg2.py index a229e13a47..8e5af5f1f3 100644 --- a/tests/dbshell/test_postgresql_psycopg2.py +++ b/tests/dbshell/test_postgresql_psycopg2.py @@ -112,5 +112,5 @@ class PostgreSqlDbshellCommandTestCase(SimpleTestCase): self.assertNotEqual(sigint_handler, signal.SIG_IGN) with mock.patch('subprocess.check_call', new=_mock_subprocess_call): DatabaseClient.runshell_db({}) - # dbshell restores the orignal handler. + # dbshell restores the original handler. self.assertEqual(sigint_handler, signal.getsignal(signal.SIGINT)) diff --git a/tests/forms_tests/widget_tests/test_selectdatewidget.py b/tests/forms_tests/widget_tests/test_selectdatewidget.py index 7f8379c556..f9921af5f9 100644 --- a/tests/forms_tests/widget_tests/test_selectdatewidget.py +++ b/tests/forms_tests/widget_tests/test_selectdatewidget.py @@ -317,7 +317,7 @@ class SelectDateWidgetTest(WidgetTest): def test_selectdate_empty_label(self): w = SelectDateWidget(years=('2014',), empty_label='empty_label') - # Rendering the default state with empty_label setted as string. + # Rendering the default state with empty_label set as string. self.assertInHTML('<option selected value="">empty_label</option>', w.render('mydate', ''), count=3) w = SelectDateWidget(years=('2014',), empty_label=('empty_year', 'empty_month', 'empty_day')) diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 985380cc57..24260ae610 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -733,7 +733,7 @@ class CookieTests(unittest.TestCase): # Chunks without an equals sign appear as unnamed values per # https://bugzilla.mozilla.org/show_bug.cgi?id=169091 self.assertIn('django_language', parse_cookie('abc=def; unnamed; django_language=en')) - # Even a double quote may be an unamed value. + # Even a double quote may be an unnamed value. self.assertEqual(parse_cookie('a=b; "; c=d'), {'a': 'b', '': '"', 'c': 'd'}) # Spaces in names and values, and an equals sign in values. self.assertEqual(parse_cookie('a b c=d e = f; gh=i'), {'a b c': 'd e = f', 'gh': 'i'}) diff --git a/tests/indexes/tests.py b/tests/indexes/tests.py index 219dfe67b1..8dc81da6aa 100644 --- a/tests/indexes/tests.py +++ b/tests/indexes/tests.py @@ -81,7 +81,7 @@ class SchemaIndexesNotPostgreSQLTests(TransactionTestCase): opclasses=['varchar_pattern_ops'], ) with connection.schema_editor() as editor: - # This would error if opclasses weren't ingored. + # This would error if opclasses weren't ignored. editor.add_index(IndexedArticle2, index) diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py index 987e713405..48d4acbb11 100644 --- a/tests/pagination/tests.py +++ b/tests/pagination/tests.py @@ -376,7 +376,7 @@ class ModelPaginationTests(TestCase): def test_paginating_unordered_object_list_raises_warning(self): """ - Unordered object list warning with an object that has an orderd + Unordered object list warning with an object that has an ordered attribute but not a model attribute. """ class ObjectList: diff --git a/tests/template_tests/syntax_tests/test_cache.py b/tests/template_tests/syntax_tests/test_cache.py index 6a59cb3c75..80af1c2bd6 100644 --- a/tests/template_tests/syntax_tests/test_cache.py +++ b/tests/template_tests/syntax_tests/test_cache.py @@ -108,7 +108,7 @@ class CacheTagTests(SimpleTestCase): 'As plurdled gabbleblotchits/On a lurgid bee/' 'That mordiously hath bitled out/Its earted jurtles/' 'Into a rancid festering/Or else I shall rend thee in the gobberwarts' - 'with my blurglecruncheon/See if I dont.' + 'with my blurglecruncheon/See if I don\'t.' ), } ) |
