"""Pytest configuration for the paper-dynasty-database test suite. Sets DATABASE_TYPE=postgresql before any app module is imported so that db_engine.py sets SKIP_TABLE_CREATION=True and does not try to mutate the production SQLite file during test collection. Each test module is responsible for binding models to its own in-memory database. """ import os os.environ["DATABASE_TYPE"] = "postgresql" # Provide dummy credentials so PooledPostgresqlDatabase can be instantiated # without raising a configuration error (it will not actually be used). os.environ.setdefault("POSTGRES_PASSWORD", "test-dummy")