Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- a/test/db_test_base.py Fri May 07 16:01:57 2021 +0200 +++ b/test/db_test_base.py Fri May 07 20:50:08 2021 +0200 @@ -1977,13 +1977,13 @@ for filt in iiter(): ae(filt(None, {kw: ['-1']}), ['1']) - # These do not work with any of the backends currently + # '3' or empty (without explicit 'or') + ae(filt(None, {kw: ['3', '-1']}), + ['1', '2', '3']) + # This does not work with any of the backends currently: # '3' or empty (with explicit 'or') #ae(filt(None, {kw: ['3', '-1', '-4']}), # ['1', '2', '3']) - # '3' or empty (without explicit 'or') - #ae(filt(None, {kw: ['3', '-1']}), - # ['1', '2', '3']) def testFilteringRevMultilink(self): ae, iiter = self.filteringSetupTransitiveSearch('user')
