docs: Fix a few typos

There are small typos in:
- tests/test_watson/tests.py
- watson/search.py

Fixes:
- Should read `request` rather than `requet`.
- Should read `committed` rather than `commited`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
This commit is contained in:
Tim Gates 2022-08-31 20:49:34 +10:00 committed by Guillaume Baffoin
parent f0a81bff71
commit 1ad7ac9781
2 changed files with 2 additions and 2 deletions

View File

@ -754,7 +754,7 @@ class SiteSearchTest(SearchTestBase):
self.assertEqual(ex.args[0], "404.html")
else:
self.assertEqual(response.status_code, 404)
# Test a requet for the last page.
# Test a request for the last page.
response = self.client.get("/custom/?fooo=title&page=last")
self.assertEqual(response.context["paginator"].num_pages, 1)
self.assertEqual(response.context["page_obj"].number, 1)

View File

@ -240,7 +240,7 @@ class SearchContextManager(local):
objects.add((engine, obj))
def invalidate(self):
"""Marks this search context as broken, so should not be commited."""
"""Marks this search context as broken, so should not be committed."""
self._assert_active()
objects, _ = self._stack[-1]
self._stack[-1] = (objects, True)