Buckets:

download
raw
648 Bytes
import pytest
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
@pytest.fixture
def db():
"""SQLAlchemy session backed by an in-memory SQLite database."""
engine = create_engine(
"sqlite:///:memory:",
connect_args={"check_same_thread": False},
)
from db import (
Base,
) # noqa: E402 — imported here to avoid circular import at module level
Base.metadata.create_all(engine)
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
session = Session()
try:
yield session
finally:
session.close()
engine.dispose()

Xet Storage Details

Size:
648 Bytes
·
Xet hash:
ffde5a1683cfca333d91f1144eaf91353bb7b9b84d14f0e46e5f56f57b9be584

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.