1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed typo in tests/backends/postgresql/test_server_side_cursors.py.

This commit is contained in:
Nick Pope 2023-12-04 11:29:38 +00:00 committed by Mariusz Felisiak
parent 0ee2b8c326
commit 2c6e4a29b0

View File

@ -53,7 +53,7 @@ class ServerSideCursorsPostgres(TestCase):
self.assertFalse(cursor.is_holdable)
self.assertFalse(cursor.is_binary)
def asserNotUsesCursor(self, queryset):
def assertNotUsesCursor(self, queryset):
self.assertUsesCursor(queryset, num_expected=0)
def test_server_side_cursor(self):
@ -98,4 +98,4 @@ class ServerSideCursorsPostgres(TestCase):
del persons # Close server-side cursor
with self.override_db_setting(DISABLE_SERVER_SIDE_CURSORS=True):
self.asserNotUsesCursor(Person.objects.iterator())
self.assertNotUsesCursor(Person.objects.iterator())