Mercurial > p > roundup > code
comparison test/db_test_base.py @ 6396:75a53956cf13
Multilink expressions with simple "or"
.. also when searching for empty multilinks with '-1' as part of the
list of IDs.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Fri, 07 May 2021 20:50:08 +0200 |
| parents | 8baf81d1cfc1 |
| children | 1361e07f5b24 |
comparison
equal
deleted
inserted
replaced
| 6395:8baf81d1cfc1 | 6396:75a53956cf13 |
|---|---|
| 1975 self.db.issue.set('1', keywords=[]) | 1975 self.db.issue.set('1', keywords=[]) |
| 1976 self.db.commit() | 1976 self.db.commit() |
| 1977 for filt in iiter(): | 1977 for filt in iiter(): |
| 1978 ae(filt(None, {kw: ['-1']}), | 1978 ae(filt(None, {kw: ['-1']}), |
| 1979 ['1']) | 1979 ['1']) |
| 1980 # These do not work with any of the backends currently | 1980 # '3' or empty (without explicit 'or') |
| 1981 ae(filt(None, {kw: ['3', '-1']}), | |
| 1982 ['1', '2', '3']) | |
| 1983 # This does not work with any of the backends currently: | |
| 1981 # '3' or empty (with explicit 'or') | 1984 # '3' or empty (with explicit 'or') |
| 1982 #ae(filt(None, {kw: ['3', '-1', '-4']}), | 1985 #ae(filt(None, {kw: ['3', '-1', '-4']}), |
| 1983 # ['1', '2', '3']) | |
| 1984 # '3' or empty (without explicit 'or') | |
| 1985 #ae(filt(None, {kw: ['3', '-1']}), | |
| 1986 # ['1', '2', '3']) | 1986 # ['1', '2', '3']) |
| 1987 | 1987 |
| 1988 def testFilteringRevMultilink(self): | 1988 def testFilteringRevMultilink(self): |
| 1989 ae, iiter = self.filteringSetupTransitiveSearch('user') | 1989 ae, iiter = self.filteringSetupTransitiveSearch('user') |
| 1990 ni = 'nosy_issues' | 1990 ni = 'nosy_issues' |
