tests: avoid breaking old html text with data for python

This commit is contained in:
Jean-Francois Dockes 2013-10-30 18:37:26 +01:00
parent 338ec6eb42
commit 12e3f683b9
2 changed files with 25 additions and 25 deletions

View File

@ -22,7 +22,7 @@ else:
db = recoll.connect() db = recoll.connect()
query = db.query() query = db.query()
nres = query.execute("testfield:testfieldvalue", stemming=0) nres = query.execute("testfield:testfieldvalue1", stemming=0)
qs = "Xapian query: [%s]" % query.getxquery() qs = "Xapian query: [%s]" % query.getxquery()
print(utf8string(qs)) print(utf8string(qs))

View File

@ -1,50 +1,50 @@
python doc.py python doc.py
Xapian query: [(TSTFLDtestfieldvalue:(wqf=11))] Xapian query: [(TSTFLDtestfieldvalue1:(wqf=11))]
Result count: 1 1 Result count: 1 1
doc.title: [HTML fields test file: été à noël] 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] getattr(doc, title) -> [HTML fields test file: été à noël]
doc.get(title) -> [HTML fields test file: été à noël] doc.get(title) -> [HTML fields test file: été à noël]
getattr(doc, testfield) -> [testfieldvalue] getattr(doc, testfield) -> [testfieldvalue1]
doc.get(testfield) -> [testfieldvalue] doc.get(testfield) -> [testfieldvalue1]
getattr(doc, filename) -> [htmlfield.html] getattr(doc, filename) -> [htmlfield1.html]
doc.get(filename) -> [htmlfield.html] doc.get(filename) -> [htmlfield1.html]
for fld in doc.keys(): for fld in doc.keys():
[abstract] -> [ ThisIsTheFieldHtmlTestFile] [abstract] -> [ ThisIsTheFieldHtmlTestFile]
[caption] -> [HTML fields test file: été à noël] [caption] -> [HTML fields test file: été à noël]
[dbytes] -> [27] [dbytes] -> [27]
[fbytes] -> [266] [fbytes] -> [267]
[filename] -> [htmlfield.html] [filename] -> [htmlfield1.html]
[fmtime] -> [01383142914] [fmtime] -> [01383154417]
[ipath] -> [] [ipath] -> []
[mtime] -> [01383142914] [mtime] -> [01383154417]
[mtype] -> [text/html] [mtype] -> [text/html]
[origcharset] -> [utf-8] [origcharset] -> [utf-8]
[pcbytes] -> [266] [pcbytes] -> [267]
[rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield.html|] [rcludi] -> [/home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html|]
[relevancyrating] -> [100%] [relevancyrating] -> [100%]
[sig] -> [2661383142914] [sig] -> [2671383154417]
[testfield] -> [testfieldvalue] [testfield] -> [testfieldvalue1]
[title] -> [HTML fields test file: été à noël] [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(): for k,v in doc.items().items():
[testfield] -> [testfieldvalue] [testfield] -> [testfieldvalue1]
[ipath] -> [] [ipath] -> []
[url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield.html] [url] -> [file:///home/dockes/projets/fulltext/testrecoll/html/htmlfield1.html]
[abstract] -> [ ThisIsTheFieldHtmlTestFile] [abstract] -> [ ThisIsTheFieldHtmlTestFile]
[pcbytes] -> [266] [pcbytes] -> [267]
[fbytes] -> [266] [fbytes] -> [267]
[filename] -> [htmlfield.html] [filename] -> [htmlfield1.html]
[mtype] -> [text/html] [mtype] -> [text/html]
[caption] -> [HTML fields test file: été à noël] [caption] -> [HTML fields test file: été à noël]
[fmtime] -> [01383142914] [fmtime] -> [01383154417]
[dbytes] -> [27] [dbytes] -> [27]
[sig] -> [2661383142914] [sig] -> [2671383154417]
[mtime] -> [01383142914] [mtime] -> [01383154417]
[title] -> [HTML fields test file: été à noël] [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%] [relevancyrating] -> [100%]
[origcharset] -> [utf-8] [origcharset] -> [utf-8]