diff --git a/python/tests/test_3_offline.py b/python/tests/test_3_offline.py index 66caf8e1e7..0317a903af 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"