diff options
| author | Floris Bruynooghe <flub@devork.be> | 2019-11-17 17:41:35 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2019-12-03 08:12:30 -0400 |
| commit | e2df30f7a98f91543d0b3561dbb366eb4b3d812c (patch) | |
| tree | 7b1bb0c60d8723e9e58158b151afbb5d0989c56f /bindings/python-cffi/tests/test_message.py | |
| parent | a950aa28449feef76246ad2b64224fd72e2e574c (diff) | |
Rename package to notmuch2
This is based on a previous discussion on the list where this was more
or less seen as the least-bad option.
Diffstat (limited to 'bindings/python-cffi/tests/test_message.py')
| -rw-r--r-- | bindings/python-cffi/tests/test_message.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bindings/python-cffi/tests/test_message.py b/bindings/python-cffi/tests/test_message.py index 56d06f34..532bf921 100644 --- a/bindings/python-cffi/tests/test_message.py +++ b/bindings/python-cffi/tests/test_message.py @@ -4,7 +4,7 @@ import pathlib import pytest -import notdb +import notmuch2 class TestMessage: @@ -17,7 +17,7 @@ class TestMessage: @pytest.fixture def db(self, maildir): - with notdb.Database.create(maildir.path) as db: + with notmuch2.Database.create(maildir.path) as db: yield db @pytest.fixture @@ -26,8 +26,8 @@ class TestMessage: yield msg def test_type(self, msg): - assert isinstance(msg, notdb.NotmuchObject) - assert isinstance(msg, notdb.Message) + assert isinstance(msg, notmuch2.NotmuchObject) + assert isinstance(msg, notmuch2.Message) def test_alive(self, msg): assert msg.alive @@ -41,7 +41,7 @@ class TestMessage: def test_messageid_type(self, msg): assert isinstance(msg.messageid, str) - assert isinstance(msg.messageid, notdb.BinString) + assert isinstance(msg.messageid, notmuch2.BinString) assert isinstance(bytes(msg.messageid), bytes) def test_messageid(self, msg, maildir_msg): @@ -53,7 +53,7 @@ class TestMessage: def test_threadid_type(self, msg): assert isinstance(msg.threadid, str) - assert isinstance(msg.threadid, notdb.BinString) + assert isinstance(msg.threadid, notmuch2.BinString) assert isinstance(bytes(msg.threadid), bytes) def test_path_type(self, msg): @@ -142,7 +142,7 @@ class TestProperties: @pytest.fixture def props(self, maildir): msgid, path = maildir.deliver() - with notdb.Database.create(maildir.path) as db: + with notmuch2.Database.create(maildir.path) as db: msg, dup = db.add(path, sync_flags=False) yield msg.properties |
