music-orchestrator/tests/conftest.py
Kisskin-Mister 8d8076bd3f
Some checks failed
CI / backend (push) Failing after 1m53s
feat: initial backend-first music orchestrator MVP
2026-07-10 10:02:23 +03:00

21 lines
605 B
Python

import pytest
from fastapi.testclient import TestClient
from music_orchestrator.main import create_app
@pytest.fixture()
def client(tmp_path, monkeypatch):
monkeypatch.setenv("APP_DATABASE_URL", f"sqlite:///{tmp_path / 'test.db'}")
monkeypatch.setenv("APP_API_KEYS", "test-key")
monkeypatch.setenv("APP_ENABLE_RISKY_EXTRACTORS", "false")
monkeypatch.setenv("APP_YOUTUBE_API_KEY", "")
monkeypatch.setenv("APP_SOUNDCLOUD_CLIENT_ID", "")
app = create_app()
with TestClient(app) as c:
yield c
@pytest.fixture()
def auth_headers():
return {"X-API-Key": "test-key"}