refactor: require explicit sqlite paths
This commit is contained in:
5 files changed
+20
-18
No files matched your search
@@ -2,9 +2,16 @@ import pathlib
|
||||
import tempfile
|
||||
import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
from agentmsgs.stores.sqlite import SQLiteStore
|
||||
|
||||
|
||||
def test_sqlite_store_requires_explicit_path():
|
||||
with pytest.raises(TypeError):
|
||||
SQLiteStore()
|
||||
|
||||
|
||||
def test_sqlite_persists_across_handles():
|
||||
with tempfile.TemporaryDirectory() as d:
|
||||
p = pathlib.Path(d) / "test.db"
|
||||
|
||||
Reference in new issue
Block a user