]> git.cworth.org Git - notmuch/commitdiff
Merge tag '0.34.3'
authorDavid Bremner <david@tethera.net>
Sun, 9 Jan 2022 23:34:58 +0000 (19:34 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 9 Jan 2022 23:34:58 +0000 (19:34 -0400)
notmuch 0.34.3 release

1  2 
bindings/python-cffi/tests/test_thread.py

index fbef73ac262c960c2196f971b92cff2b5b90c95c,afdbcfe071f721cc88e36b093bcc384aab291214..619d2aacfaa255ebfa0a6e775d2bab2575c5c3a3
@@@ -13,7 -13,7 +13,7 @@@ def thread(maildir, notmuch)
      maildir.deliver(body='bar',
                      headers=[('In-Reply-To', '<{}>'.format(msgid))])
      notmuch('new')
-     with notmuch2.Database(maildir.path) as db:
+     with notmuch2.Database(maildir.path, config=notmuch2.Database.CONFIG.EMPTY) as db:
          yield next(db.threads('foo'))
  
  
@@@ -57,13 -57,6 +57,13 @@@ def test_iter(thread)
  def test_matched(thread):
      assert thread.matched == 1
  
 +def test_matched_iter(thread):
 +    count = 0
 +    msgs = list(iter(thread))
 +    for msg in msgs:
 +        if msg.matched:
 +            count += 1
 +    assert count == thread.matched
  
  def test_authors_type(thread):
      assert isinstance(thread.authors, notmuch2.BinString)