"""Shared pytest fixtures."""

import pytest

from modpack_checker.database import Database


@pytest.fixture
def db(tmp_path):
    """In-memory-equivalent SQLite database backed by a temp directory."""
    return Database(str(tmp_path / "test.db"))
