Mercurial > p > roundup > code
comparison test/db_test_base.py @ 3684:bffa231ec3bc
Fixes:
- Fixed StringSort test case to require case-insensitive sorting
- Fixed hyperdb sort_repr for String to user lower()
- Fixed SQL backends to sort by lower(string) -- only mysql sorts
lowercase by default, so doing a special case for mysql didn't seem
worth the effort.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Tue, 22 Aug 2006 19:33:02 +0000 |
| parents | 193f316dbbe9 |
| children | 4d9adb8bc3b1 |
comparison
equal
deleted
inserted
replaced
| 3683:ad5e1d75e028 | 3684:bffa231ec3bc |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: db_test_base.py,v 1.75 2006-08-21 12:19:48 schlatterbeck Exp $ | 18 # $Id: db_test_base.py,v 1.76 2006-08-22 19:33:02 schlatterbeck Exp $ |
| 19 | 19 |
| 20 import unittest, os, shutil, errno, imp, sys, time, pprint, sets | 20 import unittest, os, shutil, errno, imp, sys, time, pprint, sets |
| 21 | 21 |
| 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ | 22 from roundup.hyperdb import String, Password, Link, Multilink, Date, \ |
| 23 Interval, DatabaseError, Boolean, Number, Node | 23 Interval, DatabaseError, Boolean, Number, Node |
| 1069 # 1: 'issue one' | 1069 # 1: 'issue one' |
| 1070 # 2: 'issue two' | 1070 # 2: 'issue two' |
| 1071 # 3: 'Issue three' | 1071 # 3: 'Issue three' |
| 1072 # 4: 'non four' | 1072 # 4: 'non four' |
| 1073 self.db.issue.set('3', title='Issue three') | 1073 self.db.issue.set('3', title='Issue three') |
| 1074 assert(filt(None, {}, ('+','title')) in | 1074 ae(filt(None, {}, ('+','title')), ['1', '3', '2', '4']) |
| 1075 [['3', '1', '2', '4'], ['1', '3', '2', '4']]) | 1075 ae(filt(None, {}, ('-','title')), ['4', '2', '3', '1']) |
| 1076 assert(filt(None, {}, ('-','title')) in | |
| 1077 [['4', '2', '1', '3'], ['4', '2', '3', '1']]) | |
| 1078 # Obscure bug in anydbm backend trying to convert to number | 1076 # Obscure bug in anydbm backend trying to convert to number |
| 1079 # 1: '1st issue' | 1077 # 1: '1st issue' |
| 1080 # 2: '2' | 1078 # 2: '2' |
| 1081 # 3: 'Issue three' | 1079 # 3: 'Issue three' |
| 1082 # 4: 'non four' | 1080 # 4: 'non four' |
