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

Function test_copy_storage

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

Source from the content-addressed store, hash-verified

61
62
63def test_copy_storage(conn_handler):
64 original_storage = {"default": BaseDBAsyncClient("default")}
65 conn_handler._storage = original_storage
66 ret_val = conn_handler._copy_storage()
67 assert ret_val == original_storage
68 assert ret_val is not original_storage
69
70
71def test_clear_storage(conn_handler):

Callers

nothing calls this directly

Calls 2

BaseDBAsyncClientClass · 0.90
_copy_storageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…