diff options
author | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 08:43:18 (GMT) |
---|---|---|
committer | Benjamin Saller <bcsaller@objectrealms.net> | 2007-07-13 08:43:18 (GMT) |
commit | a9b86d8896c0a9f51e26e9ad9296c5f21784edc9 (patch) | |
tree | e977b7c52fb4c4fb6a94787c761fd1a282715767 /bin | |
parent | d4f36128d2e5ff470ee6fa96c361d11e401d7346 (diff) |
updated other dbus test
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/test-indexprop.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/test-indexprop.py b/bin/test-indexprop.py index e94a8aa..bf75e46 100755 --- a/bin/test-indexprop.py +++ b/bin/test-indexprop.py @@ -8,7 +8,7 @@ def main(): "/org/laptop/sugar/DataStore") datastore = dbus.Interface(ds, dbus_interface='org.laptop.sugar.DataStore') - props = {'title:text': 'test activity', + props = {'title': 'test activity', 'title_set_by_user': '0', 'buddies': '', 'keep': '0', @@ -18,8 +18,8 @@ def main(): uid = datastore.create(props, '') print "created uid", uid - - props = {'title:text': 'test activity title changed', + datastore.complete_indexing() + props = {'title': 'test activity title changed', 'title_set_by_user': '1', 'buddies': '', 'keep': '0', @@ -29,10 +29,10 @@ def main(): datastore.update(uid, props, os.path.abspath('tests/web_data.json')) print "updated uid", uid - - #import time;time.sleep(1.0) + datastore.complete_indexing() + - result, count = datastore.find(dict(fulltext='test')) + result, count = datastore.find(dict(title='test')) print result assert result[0]['uid'] == uid for k, v in result[0].items(): |