MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_repeated_rows

Method test_repeated_rows

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

Source from the content-addressed store, hash-verified

2761 eq_(canary, ["load"])
2762
2763 def test_repeated_rows(self):
2764 User = self.classes.User
2765
2766 canary = self._fixture()
2767
2768 sess = fixture_session()
2769
2770 u1 = User(name="u1")
2771 sess.add(u1)
2772 sess.commit()
2773 sess.close()
2774
2775 sess.query(User).union_all(sess.query(User)).all()
2776 eq_(canary, ["load"])
2777
2778
2779class RemovalTest(_fixtures.FixtureTest):

Callers

nothing calls this directly

Calls 10

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

Tested by

no test coverage detected