Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
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
parentd4f36128d2e5ff470ee6fa96c361d11e401d7346 (diff)
updated other dbus test
-rwxr-xr-xbin/test-indexprop.py12
-rw-r--r--tests/test_xapianindex.py2
2 files changed, 7 insertions, 7 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():
diff --git a/tests/test_xapianindex.py b/tests/test_xapianindex.py
index f9039e6..3d39d3e 100644
--- a/tests/test_xapianindex.py
+++ b/tests/test_xapianindex.py
@@ -78,7 +78,7 @@ class Test(unittest.TestCase):
assert 'test.pdf' in set(r.get_property('filename') for r in results)
assert im.search('mime_type:application/pdf filename:test.pdf peek')[1] == 1
-
+
def test_suite():
suite = unittest.TestSuite()