MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / set

Method set

test/orm/test_collection.py:89–96  ·  view source on GitHub ↗
(self, obj, value, oldvalue, initiator)

Source from the content-addressed store, hash-verified

87 self.data.remove(value)
88
89 def set(self, obj, value, oldvalue, initiator):
90 if isinstance(value, str):
91 value = CollectionsTest.entity_maker()
92
93 if oldvalue is not None:
94 self.remove(obj, oldvalue, None)
95 self.append(obj, value, None)
96 return value
97
98
99class OrderedDictFixture:

Callers 15

_tracerMethod · 0.45
test_component_setMethod · 0.45
get_dialect_clsMethod · 0.45
get_dialect_clsMethod · 0.45
async_setMethod · 0.45
innerMethod · 0.45
taskMethod · 0.45
test_registry_setMethod · 0.45
addallMethod · 0.45
_test_dict_bulkMethod · 0.45

Calls 3

removeMethod · 0.95
appendMethod · 0.95
entity_makerMethod · 0.80

Tested by

no test coverage detected