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

Method roundtrip

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

Source from the content-addressed store, hash-verified

1040 session = fixture_session()
1041
1042 def roundtrip(obj):
1043 if obj not in session:
1044 session.add(obj)
1045 session.flush()
1046 id_, type_ = obj.id, type(obj)
1047 session.expunge_all()
1048 return session.get(type_, id_)
1049
1050 p = Parent("p")
1051

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