MCPcopy
hub / github.com/tortoise/tortoise-orm / test_clear_storage

Function test_clear_storage

tests/test_connection.py:71–74  ·  view source on GitHub ↗
(conn_handler)

Source from the content-addressed store, hash-verified

69
70
71def test_clear_storage(conn_handler):
72 conn_handler._storage = {"default": BaseDBAsyncClient("default")}
73 conn_handler._clear_storage()
74 assert conn_handler._storage == {}
75
76
77@patch("tortoise.connection.importlib.import_module")

Callers

nothing calls this directly

Calls 2

BaseDBAsyncClientClass · 0.90
_clear_storageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…