aboutsummaryrefslogtreecommitdiff
path: root/bindings/python-cffi/tests/test_database.py
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-01-01 20:43:14 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:48:34 -0400
commitac67cd84eea1148680ab3a377d35ae346073f138 (patch)
treec236c0ce222841a35e835ba4843d96b2964078b2 /bindings/python-cffi/tests/test_database.py
parent55f5e87096fda96280ccc4b191393c7e59b4df57 (diff)
lib: introduce notmuch_database_create_with_config
This takes a config path parameter, and can use that to decide the new database location.
Diffstat (limited to 'bindings/python-cffi/tests/test_database.py')
-rw-r--r--bindings/python-cffi/tests/test_database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python-cffi/tests/test_database.py b/bindings/python-cffi/tests/test_database.py
index a2c69de6..9b3219c0 100644
--- a/bindings/python-cffi/tests/test_database.py
+++ b/bindings/python-cffi/tests/test_database.py
@@ -80,7 +80,7 @@ class TestCreate:
db.create(tmppath)
def test_create_existing(self, tmppath, db):
- with pytest.raises(errors.FileError):
+ with pytest.raises(errors.DatabaseExistsError):
dbmod.Database.create(path=tmppath)
def test_close(self, db):