test: fixup tests/test_3_offline.py::TestOfflineAccountBasic::test_wrong_db

This commit is contained in:
link2xt
2024-03-03 00:36:12 +00:00
parent 08247a5d37
commit 4da0c19766

View File

@@ -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"