MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / test_set

Function test_set

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

Source from the content-addressed store, hash-verified

226
227
228def test_set(conn_handler):
229 conn_handler._storage = {"default": "existing_conn"}
230 token = conn_handler.set("other", "some_conn")
231 assert conn_handler._storage == {"default": "existing_conn", "other": "some_conn"}
232 assert token is not None
233
234
235def test_discard(conn_handler):

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…