X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=bindings%2Fpython-cffi%2Ftests%2Ftest_database.py;h=e3a8344d8cded01e3a0ee3895faaa9173a816745;hb=e2df30f7a98f91543d0b3561dbb366eb4b3d812c;hp=02de0f41ab27475b8a22ad35241367d994c02f54;hpb=a950aa28449feef76246ad2b64224fd72e2e574c;p=notmuch diff --git a/bindings/python-cffi/tests/test_database.py b/bindings/python-cffi/tests/test_database.py index 02de0f41..e3a8344d 100644 --- a/bindings/python-cffi/tests/test_database.py +++ b/bindings/python-cffi/tests/test_database.py @@ -5,10 +5,10 @@ import pathlib import pytest -import notdb -import notdb._errors as errors -import notdb._database as dbmod -import notdb._message as message +import notmuch2 +import notmuch2._errors as errors +import notmuch2._database as dbmod +import notmuch2._message as message @pytest.fixture @@ -279,7 +279,7 @@ class TestQuery: @pytest.fixture def db(self, maildir, notmuch): - """Return a read-only notdb.Database. + """Return a read-only notmuch2.Database. The database will have 3 messages, 2 threads. """ @@ -306,7 +306,7 @@ class TestQuery: def test_message_match(self, db): msgs = db.messages('*') msg = next(msgs) - assert isinstance(msg, notdb.Message) + assert isinstance(msg, notmuch2.Message) def test_count_threads(self, db): assert db.count_threads('*') == 2 @@ -323,4 +323,4 @@ class TestQuery: def test_threads_match(self, db): threads = db.threads('*') thread = next(threads) - assert isinstance(thread, notdb.Thread) + assert isinstance(thread, notmuch2.Thread)