- init_db()에 video_projects, revenue_records 테이블 추가 (CREATE IF NOT EXISTS) - video_projects CRUD: create/get/get_all/update_status/delete + get_track_by_id - revenue_records CRUD: create/get_all/update/delete/get_revenue_dashboard (RPM 자동 계산) - TDD: tests/test_db_video.py 5개 테스트 모두 PASSED - pytest.ini 추가 (pythonpath=. 설정) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
8 lines
182 B
Python
8 lines
182 B
Python
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
|