diff test/db_test_base.py @ 3525:7be25d75c3d5

Fixed SQL generation for sort/group by separate Link properties [SF#1417565] Metakit fails the new test. I have no idea why.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 30 Jan 2006 00:36:26 +0000
parents 34ada15b9936
children a4edd24c32be
line wrap: on
line diff
--- a/test/db_test_base.py	Sun Jan 29 23:40:41 2006 +0000
+++ b/test/db_test_base.py	Mon Jan 30 00:36:26 2006 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# $Id: db_test_base.py,v 1.63 2006-01-23 05:24:33 richard Exp $
+# $Id: db_test_base.py,v 1.64 2006-01-30 00:36:26 richard Exp $
 
 import unittest, os, shutil, errno, imp, sys, time, pprint, sets
 
@@ -1021,6 +1021,15 @@
         ae(filt(None, {}, ('+','nosy'), (None,None)), ['1', '2', '4', '3'])
         ae(filt(None, {}, ('-','nosy'), (None,None)), ['3', '4', '1', '2'])
 
+    def testFilteringLinkSortGroup(self):
+        # 1: status: 2, priority: 3
+        # 2: status: 1, priority: 3
+        # 3: status: 1, priority: 2,
+        # 4: status: 3, priority: 2,
+        ae, filt = self.filteringSetup()
+        ae(filt(None, {}, ('+','status'), ('+','priority')),
+            ['1', '2', '4', '3'])
+
     def testFilteringDateSort(self):
         # '1': '2003-02-16.22:50'
         # '2': '2003-01-01.00:00'

Roundup Issue Tracker: http://roundup-tracker.org/