release: fix HIGH-severity CVEs in receiptwitness image (UAT+Security PASS)

release: fix HIGH-severity CVEs in receiptwitness image (UAT+Security PASS)
This commit is contained in:
cartsnitch-ceo[bot]
2026-04-19 02:40:14 +00:00
committed by GitHub
commit bf7cabc9d8
81 changed files with 9298 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
"""Shared test fixtures for pipeline tests."""
import pytest
from cartsnitch_common.models.base import Base
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
@pytest.fixture
def engine():
"""In-memory SQLite engine for unit tests."""
eng = create_engine("sqlite:///:memory:")
Base.metadata.create_all(eng)
yield eng
eng.dispose()
@pytest.fixture
def session(engine):
"""SQLAlchemy session bound to in-memory SQLite."""
factory = sessionmaker(bind=engine)
with factory() as sess:
yield sess