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

Method test_repeated_rows

test/orm/test_events.py:2944–2956  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2942 assert u1 in sess.dirty
2943
2944 def test_repeated_rows(self):
2945 User = self.classes.User
2946
2947 canary = self._fixture()
2948
2949 sess = fixture_session()
2950
2951 u1 = User(name="u1")
2952 sess.add(u1)
2953 sess.commit()
2954
2955 sess.query(User).union_all(sess.query(User)).all()
2956 eq_(canary, [("refresh", {"id", "name"})])
2957
2958 def test_via_refresh_state(self):
2959 User = self.classes.User

Callers

nothing calls this directly

Calls 9

_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
eq_Function · 0.90
UserClass · 0.70
addMethod · 0.45
commitMethod · 0.45
allMethod · 0.45
union_allMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected