import pytest @pytest.fixture def tmp_db(tmp_path, monkeypatch): db_path = str(tmp_path / "test_music.db") monkeypatch.setattr("app.db.DB_PATH", db_path) return db_path