aboutsummaryrefslogtreecommitdiff
path: root/test/python
AgeCommit message (Collapse)Author
2012-05-23python: Remove find_message_by_filename workaroundAustin Clements
Now that notmuch_database_find_message_by_filename works on read-only databases, remove the workaround that disabled it on read-write databases. This also adds a regression test for find_message_by_filename.
2012-01-08python test "compare message ids"Patrick Totzke
Introduces a second (trivial) test for the python bindings that searches for message ids and compares the output with that of `notmuch search`.
2012-01-08clean up "compare thread ids" python testPatrick Totzke
This makes the test script open the database in READ_ONLY mode and use the libraries own sorting methods instead of "sort".
2011-12-31lib: call g_mime_init() from notmuch_database_open()Kazuo Teramoto
As reported in id:"CAEbOPGyuHnz4BPtDutnTPUHcP3eYcRCRkXhYoJR43RUMw671+g@mail.gmail.com" sometimes gmime tries to access a NULL pointer, e.g. g_mime_iconv_open() tries to access iconv_cache that is NULL if g_mime_init() is not called. This causes notmuch to segfault when calling gmime functions. Calling g_mime_init() initializes iconv_cache and others variables needed by gmime, making sure they are initialized when notmuch calls gmime functions. Test marked fix by db.
2011-12-31test: add two new messages to corpus with iso-8859-1 encodingDavid Bremner
One is quoted printable, the other users 8 bit encoding. The latter triggers a bug in the python bindings due to missing call to g_mime_init. The corresponding test is marked broken in this commit.
2011-12-11test: add a function to run Python testsThomas Jost
The new test_python() function makes writing Python tests a little easier: - it sets the environment variables as needed - it redirects stdout to the OUTPUT file (like test_emacs()). This commit also declares python as an external prereq. The stdout redirection is required to avoid trouble when running commands like "python 'script' | sort > OUTPUT": in such a case, any error due to a missing external prereq would be "swallowed" by sort, resulting to a failed test instead of a skipped one.
2011-12-05test/python: set LD_LIBRARY_PATH and PYTHONPATH to use local notmuchdebian/0.10.2-10.10.2David Bremner
Possibly this should be factored out into some kind of "run_python" function.
2011-12-05test: add tests for python bindingsDavid Bremner
We start modestly, with a (slightly modified) test case from Kazuo Teramoto. Originally it just made sure the bindings didn't crash; here we check that by comparing the output with that of notmuch search.