Test suite: pytest unit and integration tests, node tests, CI workflow

This commit is contained in:
Doudou
2026-09-26 02:17:22 +00:00
parent 82b12c360d
commit 7a5385c46a
14 changed files with 1055 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
import asyncio
import os
import sys
import pytest
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
@pytest.fixture
def run():
"""Run a coroutine to completion (no pytest-asyncio dependency)."""
def _run(coro):
return asyncio.run(coro)
return _run
@pytest.fixture
def store(tmp_path):
from helpers import Store
return Store(str(tmp_path))