blob 28a8aab488b3afa9a1a73b0d76a511c26ef409a3 546 bytes (raw)
name: test/python # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| | #!/usr/bin/env bash
test_description="python bindings"
. ./test-lib.sh
add_email_corpus
# This test relies on the output from the python Thread.__str__
# method being byte compatible with that from notmuch search.
test_begin_subtest "compare with notmuch search"
python <<EOF > OUTPUT
import notmuch
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
q_new = notmuch.Query(db, 'tag:inbox')
for t in q_new.search_threads():
print unicode(t)
EOF
notmuch search tag:inbox > EXPECTED
test_expect_equal_file OUTPUT EXPECTED
test_done
|
debug log:
solving 28a8aab ...
found 28a8aab in https://yhetil.org/notmuch/1323050068-28544-1-git-send-email-david@tethera.net/
applying [1/1] https://yhetil.org/notmuch/1323050068-28544-1-git-send-email-david@tethera.net/
diff --git a/test/python b/test/python
new file mode 100755
index 0000000..28a8aab
Checking patch test/python...
Applied patch test/python cleanly.
index at:
100755 28a8aab488b3afa9a1a73b0d76a511c26ef409a3 test/python
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).