Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBenjamin Saller <bcsaller@objectrealms.net>2007-07-13 08:43:18 (GMT)
committer Benjamin Saller <bcsaller@objectrealms.net>2007-07-13 08:43:18 (GMT)
commita9b86d8896c0a9f51e26e9ad9296c5f21784edc9 (patch)
treee977b7c52fb4c4fb6a94787c761fd1a282715767 /bin
parentd4f36128d2e5ff470ee6fa96c361d11e401d7346 (diff)
updated other dbus test
Diffstat (limited to 'bin')
-rwxr-xr-xbin/test-indexprop.py12
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():