Added in-memory database support to storage and switched tests to use it.
CI / Formatting (push) Failing after 32s
CI / Linting (push) Successful in 34s
CI / Tests (Python 3.12) (push) Successful in 39s
CI / Tests (Python 3.13) (push) Successful in 26s
CI / Tests (Python 3.14) (push) Successful in 16s
CI / Type Checking (push) Successful in 21s
CI / Spelling (push) Successful in 18s

This commit is contained in:
2026-04-04 18:48:27 -04:00
parent 15e9cd6131
commit 7957ceabfa
3 changed files with 20 additions and 18 deletions
+3 -4
View File
@@ -25,7 +25,6 @@ from owlbot.api.storage import ModuleStorage
if TYPE_CHECKING:
from collections.abc import AsyncIterator
from pathlib import Path
def make_module_context(
@@ -47,7 +46,7 @@ def make_module_context(
@pytest.fixture
async def storage(tmp_path: Path) -> AsyncIterator[ModuleStorage]:
"""Yield an open ModuleStorage backed by a temporary directory."""
async with ModuleStorage(tmp_path, "test_module") as s:
async def storage() -> AsyncIterator[ModuleStorage]:
"""Yield an open in-memory ModuleStorage."""
async with ModuleStorage(None, "test_module") as s:
yield s