MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_delete_not_initialized

Method test_delete_not_initialized

test/test_cursor.py:1376–1380  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1374 assertCursorKilled()
1375
1376 def test_delete_not_initialized(self):
1377 # Creating a cursor with invalid arguments will not run __init__
1378 # but will still call __del__, eg test.find(invalidKwarg=1).
1379 cursor = Cursor.__new__(Cursor) # Skip calling __init__
1380 cursor.__del__() # no error
1381
1382 def test_getMore_does_not_send_readPreference(self):
1383 listener = AllowListEventListener("find", "getMore")

Callers

nothing calls this directly

Calls 2

__new__Method · 0.45
__del__Method · 0.45

Tested by

no test coverage detected