Files
nanobot/tests/session/test_session_fsync.py
T
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00

11 lines
460 B
Python

from nanobot.session.manager import SessionManager
def test_every_transaction_uses_full_synchronous_and_foreign_keys(tmp_path):
manager = SessionManager(tmp_path)
for _ in range(2):
with manager._store.transaction() as db:
assert db.execute("PRAGMA synchronous").fetchone()[0] == 2
assert db.execute("PRAGMA foreign_keys").fetchone()[0] == 1
assert db.execute("PRAGMA journal_mode").fetchone()[0] == "wal"