diff --git a/tests/defer/tests.py b/tests/defer/tests.py index dbb1299255..f2e86aca96 100644 --- a/tests/defer/tests.py +++ b/tests/defer/tests.py @@ -40,7 +40,7 @@ class DeferTests(AssertionMixin, TestCase): # of them except the model's primary key see #15494 self.assert_delayed(qs.only("pk")[0], 3) # You can use 'pk' with reverse foreign key lookups. - # The related_id is alawys set even if it's not fetched from the DB, + # The related_id is always set even if it's not fetched from the DB, # so pk and related_id are not deferred. self.assert_delayed(self.s1.primary_set.all().only('pk')[0], 2) diff --git a/tests/view_tests/tests/test_debug.py b/tests/view_tests/tests/test_debug.py index abe41dc375..0682e0395a 100644 --- a/tests/view_tests/tests/test_debug.py +++ b/tests/view_tests/tests/test_debug.py @@ -628,7 +628,7 @@ class ExceptionReporterTests(SimpleTestCase): 'items (application/octet-stream)>', html ) - # COOKES + # COOKIES rf = RequestFactory() rf.cookies['items'] = 'Oops' request = rf.get('/test_view/') @@ -773,7 +773,7 @@ class PlainTextReportTests(SimpleTestCase): reporter = ExceptionReporter(request, None, None, None) text = reporter.get_traceback_text() self.assertIn('items =