summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2015-11-03 11:55:10 +0200
committerTim Graham <timograham@gmail.com>2015-11-03 10:33:05 +0000
commita3bbc38d545390f605f9bed947c9fdfe2ffa6055 (patch)
treec6376e8cd0bce8c9d0e3e58a8a86022e3b107f32 /tests
parented3e066cc157ed69f2697454540f7fb60cfcd308 (diff)
[1.9.x] Fixed #25668 -- Misc spelling errors
Backport of 3ee18400ae9b916da1a3bee9c9c630fd223a2d3c from master
Diffstat (limited to 'tests')
-rw-r--r--tests/admin_utils/tests.py2
-rw-r--r--tests/db_functions/tests.py4
-rw-r--r--tests/foreign_object/tests.py2
-rw-r--r--tests/i18n/test_extraction.py2
-rw-r--r--tests/i18n/tests.py2
-rw-r--r--tests/test_client_regress/tests.py4
-rw-r--r--tests/timezones/tests.py2
-rw-r--r--tests/urlpatterns_reverse/tests.py8
8 files changed, 13 insertions, 13 deletions
diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py
index 7fb490dd2a..069433fd7d 100644
--- a/tests/admin_utils/tests.py
+++ b/tests/admin_utils/tests.py
@@ -186,7 +186,7 @@ class UtilsTests(SimpleTestCase):
self.assertEqual(display_value, '12345')
@override_settings(USE_L10N=True, USE_THOUSAND_SEPARATOR=True)
- def test_number_formats_with_thousand_seperator_display_for_field(self):
+ def test_number_formats_with_thousand_separator_display_for_field(self):
display_value = display_for_field(12345.6789, models.FloatField(), self.empty_value)
self.assertEqual(display_value, '12,345.6789')
diff --git a/tests/db_functions/tests.py b/tests/db_functions/tests.py
index c18a4b25af..b5f4114aea 100644
--- a/tests/db_functions/tests.py
+++ b/tests/db_functions/tests.py
@@ -136,7 +136,7 @@ class FunctionTests(TestCase):
self.assertEqual(articles.first().last_updated, now)
@skipIfDBFeature('greatest_least_ignores_nulls')
- def test_greatest_propogates_null(self):
+ def test_greatest_propagates_null(self):
now = timezone.now()
Article.objects.create(title="Testing with Django", written=now)
@@ -231,7 +231,7 @@ class FunctionTests(TestCase):
self.assertEqual(articles.first().first_updated, now)
@skipIfDBFeature('greatest_least_ignores_nulls')
- def test_least_propogates_null(self):
+ def test_least_propagates_null(self):
now = timezone.now()
Article.objects.create(title="Testing with Django", written=now)
diff --git a/tests/foreign_object/tests.py b/tests/foreign_object/tests.py
index 5188645325..90d7b34721 100644
--- a/tests/foreign_object/tests.py
+++ b/tests/foreign_object/tests.py
@@ -292,7 +292,7 @@ class MultiColumnFKTests(TestCase):
self.assertQuerysetEqual(self.jane.friends.all(), [])
- def test_prefetch_related_m2m_foward_works(self):
+ def test_prefetch_related_m2m_forward_works(self):
Membership.objects.create(membership_country=self.usa, person=self.bob, group=self.cia)
Membership.objects.create(membership_country=self.usa, person=self.jim, group=self.democrat)
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
index e26ec29e43..f72aa00771 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -143,7 +143,7 @@ class ExtractorTests(SerializeMixin, SimpleTestCase):
None can be passed for the line_number argument to skip checking of
the :42 suffix part.
- A string token can also be pased as line_number, in which case it
+ A string token can also be passed as line_number, in which case it
will be searched in the template, and its line number will be used.
A msgid is a suitable candidate.
"""
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index 08ed5abe86..33430e87ef 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -1746,7 +1746,7 @@ class LocaleMiddlewareTests(TestCase):
LANGUAGES=[
('bg', 'Bulgarian'),
('en-us', 'English'),
- ('pt-br', 'Portugese (Brazil)'),
+ ('pt-br', 'Portuguese (Brazil)'),
],
MIDDLEWARE_CLASSES=[
'django.middleware.locale.LocaleMiddleware',
diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py
index 500c28f9ae..cff52024dc 100644
--- a/tests/test_client_regress/tests.py
+++ b/tests/test_client_regress/tests.py
@@ -183,7 +183,7 @@ class AssertContainsTests(SimpleTestCase):
self.assertNotContains(r, ugettext_lazy('never'))
def test_assert_contains_renders_template_response(self):
- """ Test that we can pass in an unrendered SimpleTemplateReponse
+ """ Test that we can pass in an unrendered SimpleTemplateResponse
without throwing an error.
Refs #15826.
"""
@@ -200,7 +200,7 @@ class AssertContainsTests(SimpleTestCase):
self.assertContains(response, 'Hello')
def test_assert_not_contains_renders_template_response(self):
- """ Test that we can pass in an unrendered SimpleTemplateReponse
+ """ Test that we can pass in an unrendered SimpleTemplateResponse
without throwing an error.
Refs #15826.
"""
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py
index 7f550baf6c..57c71d995c 100644
--- a/tests/timezones/tests.py
+++ b/tests/timezones/tests.py
@@ -676,7 +676,7 @@ class SerializationTests(SimpleTestCase):
# Backend-specific notes:
# - JSON supports only milliseconds, microseconds will be truncated.
# - PyYAML dumps the UTC offset correctly for timezone-aware datetimes,
- # but when it loads this representation, it substracts the offset and
+ # but when it loads this representation, it subtracts the offset and
# returns a naive datetime object in UTC (http://pyyaml.org/ticket/202).
# Tests are adapted to take these quirks into account.
diff --git a/tests/urlpatterns_reverse/tests.py b/tests/urlpatterns_reverse/tests.py
index 5f06cc7fed..2225fe8106 100644
--- a/tests/urlpatterns_reverse/tests.py
+++ b/tests/urlpatterns_reverse/tests.py
@@ -771,20 +771,20 @@ class NamespaceTests(SimpleTestCase):
"current_app should either match the whole path or shouldn't be used"
self.assertEqual(
'/ns-included1/test4/inner/',
- reverse('inc-ns1:testapp:urlobject-view', current_app='non-existant:test-ns3')
+ reverse('inc-ns1:testapp:urlobject-view', current_app='non-existent:test-ns3')
)
self.assertEqual(
'/ns-included1/test4/inner/37/42/',
- reverse('inc-ns1:testapp:urlobject-view', args=[37, 42], current_app='non-existant:test-ns3')
+ reverse('inc-ns1:testapp:urlobject-view', args=[37, 42], current_app='non-existent:test-ns3')
)
self.assertEqual(
'/ns-included1/test4/inner/42/37/',
reverse('inc-ns1:testapp:urlobject-view', kwargs={'arg1': 42, 'arg2': 37},
- current_app='non-existant:test-ns3')
+ current_app='non-existent:test-ns3')
)
self.assertEqual(
'/ns-included1/test4/inner/+%5C$*/',
- reverse('inc-ns1:testapp:urlobject-special-view', current_app='non-existant:test-ns3')
+ reverse('inc-ns1:testapp:urlobject-special-view', current_app='non-existent:test-ns3')
)