tests: avoid breaking old html text with data for python
This commit is contained in:
parent
338ec6eb42
commit
12e3f683b9
@ -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))
|
||||
|
||||
|
||||
@ -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]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user