MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / set

Method set

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

Source from the content-addressed store, hash-verified

88 self.data.remove(value)
89
90 def set(self, obj, value, oldvalue, initiator):
91 if isinstance(value, str):
92 value = CollectionsTest.entity_maker()
93
94 if oldvalue is not None:
95 self.remove(obj, oldvalue, None)
96 self.append(obj, value, None)
97 return value
98
99
100class 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