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

Function test_get_storage

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

Source from the content-addressed store, hash-verified

46
47
48def test_get_storage(conn_handler):
49 expected_ret_val = {"default": BaseDBAsyncClient("default")}
50 conn_handler._storage = expected_ret_val
51 ret_val = conn_handler._get_storage()
52 assert ret_val == expected_ret_val
53 assert ret_val is conn_handler._storage
54
55
56def test_set_storage(conn_handler):

Callers

nothing calls this directly

Calls 2

BaseDBAsyncClientClass · 0.90
_get_storageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…