From 4da0c197662cad7d41b89bd7ba9a732e21d59115 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 3 Mar 2024 00:36:12 +0000 Subject: [PATCH] test: fixup tests/test_3_offline.py::TestOfflineAccountBasic::test_wrong_db --- python/tests/test_3_offline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_3_offline.py b/python/tests/test_3_offline.py index 66caf8e1e7..20a64e6e8e 100644 --- a/python/tests/test_3_offline.py +++ b/python/tests/test_3_offline.py @@ -52,8 +52,8 @@ class TestOfflineAccountBasic: def test_wrong_db(self, tmp_path): p = tmp_path / "hello.db" p.write_text("123") - account = Account(str(p)) - assert not account.is_open() + with pytest.raises(ValueError): + _account = Account(str(p)) def test_os_name(self, tmp_path): p = tmp_path / "hello.db"