From 12e3f683b9d6085f3230b664ad453e6a59b55dc8 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 30 Oct 2013 18:37:26 +0100 Subject: [PATCH] tests: avoid breaking old html text with data for python --- tests/pythonapi/doc.py | 2 +- tests/pythonapi/pythonapi.txt | 48 +++++++++++++++++------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/pythonapi/doc.py b/tests/pythonapi/doc.py index 77bfafc9..1002dfc0 100644 --- a/tests/pythonapi/doc.py +++ b/tests/pythonapi/doc.py @@ -22,7 +22,7 @@ else: db = recoll.connect() query = db.query() -nres = query.execute("testfield:testfieldvalue", stemming=0) +nres = query.execute("testfield:testfieldvalue1", stemming=0) qs = "Xapian query: [%s]" % query.getxquery() print(utf8string(qs)) diff --git a/tests/pythonapi/pythonapi.txt b/tests/pythonapi/pythonapi.txt index bacfbb95..1ea39487 100644 --- a/tests/pythonapi/pythonapi.txt +++ b/tests/pythonapi/pythonapi.txt @@ -1,50 +1,50 @@ python doc.py -Xapian query: [(TSTFLDtestfieldvalue:(wqf=11))] +Xapian query: [(TSTFLDtestfieldvalue1:(wqf=11))] Result count: 1 1 doc.title: [HTML fields test file: été à noël] -doc.testfield: [testfieldvalue] +doc.testfield: [testfieldvalue1] getattr(doc, title) -> [HTML fields test file: été à noël] doc.get(title) -> [HTML fields test file: été à noël] -getattr(doc, testfield) -> [testfieldvalue] -doc.get(testfield) -> [testfieldvalue] -getattr(doc, filename) -> [htmlfield.html] -doc.get(filename) -> [htmlfield.html] +getattr(doc, testfield) -> [testfieldvalue1] +doc.get(testfield) -> [testfieldvalue1] +getattr(doc, filename) -> [htmlfield1.html] +doc.get(filename) -> [htmlfield1.html] for fld in doc.keys(): [abstract] -> [ ThisIsTheFieldHtmlTestFile] [caption] -> [HTML fields test file: été à noël] [dbytes] -> [27] -[fbytes] -> [266] -[filename] -> [htmlfield.html] -[fmtime] -> [01383142914] +[fbytes] -> [267] +[filename] -> [htmlfield1.html] +[fmtime] -> [01383154417] [ipath] -> [] -[mtime] -> [01383142914] +[mtime] -> [01383154417] [mtype] -> [text/html] [origcharset] -> [utf-8] -[pcbytes] -> [266] -[rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield.html|] +[pcbytes] -> [267] +[rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html|] [relevancyrating] -> [100%] -[sig] -> [2661383142914] -[testfield] -> [testfieldvalue] +[sig] -> [2671383154417] +[testfield] -> [testfieldvalue1] [title] -> [HTML fields test file: été à noël] -[url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield.html] +[url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] for k,v in doc.items().items(): -[testfield] -> [testfieldvalue] +[testfield] -> [testfieldvalue1] [ipath] -> [] -[url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield.html] +[url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html] [abstract] -> [ ThisIsTheFieldHtmlTestFile] -[pcbytes] -> [266] -[fbytes] -> [266] -[filename] -> [htmlfield.html] +[pcbytes] -> [267] +[fbytes] -> [267] +[filename] -> [htmlfield1.html] [mtype] -> [text/html] [caption] -> [HTML fields test file: été à noël] -[fmtime] -> [01383142914] +[fmtime] -> [01383154417] [dbytes] -> [27] -[sig] -> [2661383142914] -[mtime] -> [01383142914] +[sig] -> [2671383154417] +[mtime] -> [01383154417] [title] -> [HTML fields test file: été à noël] -[rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield.html|] +[rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html|] [relevancyrating] -> [100%] [origcharset] -> [utf-8]