[SQL-CVS] r4377 - SQLObject/trunk/sqlobject/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2011-04-18 11:16:08
|
Author: phd Date: Mon Apr 18 05:15:57 2011 New Revision: 4377 Log: Sort the view by id. Modified: SQLObject/trunk/sqlobject/tests/test_views.py Modified: SQLObject/trunk/sqlobject/tests/test_views.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_views.py Mon Apr 18 04:11:50 2011 (r4376) +++ SQLObject/trunk/sqlobject/tests/test_views.py Mon Apr 18 05:15:57 2011 (r4377) @@ -32,7 +32,8 @@ number = StringCol(dbName=PhoneNumber.q.number) phoneNumber = ForeignKey('PhoneNumber', dbName=PhoneNumber.q.id) calls = SQLMultipleJoin('PhoneCall', joinColumn='phoneNumberID') - vCalls = SQLMultipleJoin('ViewPhoneCall', joinColumn='phoneNumberID') + vCalls = SQLMultipleJoin('ViewPhoneCall', joinColumn='phoneNumberID', + orderBy='id') class ViewPhoneMore(ViewSQLObject): ''' View on top of view ''' @@ -130,4 +131,4 @@ def testDistinctCount(): # This test is for SelectResults non-* based count when distinct # We're really just checking this doesn't raise anything due to lack of sqlrepr'ing - assert ViewPhone.select(distinct=True).count() == 2 \ No newline at end of file + assert ViewPhone.select(distinct=True).count() == 2 |