mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 00:10:02 +01:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
e7d1461959
1 changed files with 8 additions and 0 deletions
|
|
@ -871,6 +871,14 @@ def event_func(t, library_id, *args):
|
|||
cache.set_field('tags', {1:'foo', 2:'bar', 3:'mumble'})
|
||||
ae(event_set, {2, 3})
|
||||
|
||||
# test setting a many-many field to empty
|
||||
event_set = set()
|
||||
cache.set_field('tags', {1:''})
|
||||
ae(event_set, {1,})
|
||||
event_set = set()
|
||||
cache.set_field('tags', {1:''})
|
||||
ae(event_set, set())
|
||||
|
||||
# test setting title
|
||||
event_set = set()
|
||||
cache.set_field('title', {1:'Book 1'})
|
||||
|
|
|
|||
Loading…
Reference in a new issue