MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / roundtrip

Method roundtrip

test/ext/test_associationproxy.py:1101–1107  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1099 session = fixture_session()
1100
1101 def roundtrip(obj):
1102 if obj not in session:
1103 session.add(obj)
1104 session.flush()
1105 id_, type_ = obj.id, type(obj)
1106 session.expunge_all()
1107 return session.get(type_, id_)
1108
1109 p = Parent("p")
1110

Callers 4

test_mapping_opsMethod · 0.45
test_set_operationsMethod · 0.45
test_set_mutationMethod · 0.45
test_basicMethod · 0.45

Calls 4

addMethod · 0.45
flushMethod · 0.45
expunge_allMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected