comparison test/db_test_base.py @ 6411:978820fc88de

Disable a failing test Looks like the query generator should also support an empty list for Link properties like it does for Multilink now. Note that this was never in the design, it was always asumed that searching for empty Link/Multilink properties would be done with '-1' or ['-1']. I've just created issue2551135 for this.
author Ralf Schlatterbeck <rsc@runtux.com>
date Thu, 13 May 2021 10:28:45 +0200
parents 66ccddb034f2
children a0c0ee3ed8b1
comparison
equal deleted inserted replaced
6410:66ccddb034f2 6411:978820fc88de
1852 grp = (None, None) 1852 grp = (None, None)
1853 for filt in iiter(): 1853 for filt in iiter():
1854 ae(filt(None, {'status': '1'}, ('+','id'), grp), ['2','3']) 1854 ae(filt(None, {'status': '1'}, ('+','id'), grp), ['2','3'])
1855 ae(filt(None, {'status': [], 'status.name': 'unread'}), []) 1855 ae(filt(None, {'status': [], 'status.name': 'unread'}), [])
1856 ae(filt(None, {a: '-1'}, ('+','id'), grp), ['3','4']) 1856 ae(filt(None, {a: '-1'}, ('+','id'), grp), ['3','4'])
1857 ae(filt(None, {a: []}, ('+','id'), grp), ['3','4']) 1857 # Currently works only for non-sql backends:
1858 #ae(filt(None, {a: []}, ('+','id'), grp), ['3','4'])
1858 ae(filt(None, {a: None}, ('+','id'), grp), ['3','4']) 1859 ae(filt(None, {a: None}, ('+','id'), grp), ['3','4'])
1859 ae(filt(None, {a: [None]}, ('+','id'), grp), ['3','4']) 1860 ae(filt(None, {a: [None]}, ('+','id'), grp), ['3','4'])
1860 ae(filt(None, {a: ['-1', None]}, ('+','id'), grp), ['3','4']) 1861 ae(filt(None, {a: ['-1', None]}, ('+','id'), grp), ['3','4'])
1861 ae(filt(None, {a: ['1', None]}, ('+','id'), grp), ['1', '3','4']) 1862 ae(filt(None, {a: ['1', None]}, ('+','id'), grp), ['1', '3','4'])
1862 1863

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