MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_clause_expansion

Method test_clause_expansion

test/orm/test_composites.py:2003–2014  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2001 )
2002
2003 def test_clause_expansion(self):
2004 self._fixture(False)
2005 Edge = self.classes.Edge
2006 from sqlalchemy.orm import configure_mappers
2007
2008 configure_mappers()
2009
2010 self.assert_compile(
2011 select(Edge).order_by(Edge.start),
2012 "SELECT edge.id, edge.x1, edge.y1, edge.x2, edge.y2 FROM edge "
2013 "ORDER BY edge.x1, edge.y1",
2014 )
2015
2016
2017class NoneReturnTest(fixtures.TestBase):

Callers

nothing calls this directly

Calls 5

_fixtureMethod · 0.95
configure_mappersFunction · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80
order_byMethod · 0.45

Tested by

no test coverage detected