Skip to content

Commit 9df2373

Browse files
nanotaboadaclaude
andcommitted
fix(tests): derive DB_PATH from DATABASE_URL instead of STORAGE_PATH (#2)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a8183d2 commit 9df2373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_migrations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
subsequent test runs.
1212
"""
1313

14-
import os
1514
import sqlite3
1615

1716
from alembic import command
1817

18+
from databases.player_database import DATABASE_URL
1919
from tests.conftest import ALEMBIC_CONFIG
2020

21-
DB_PATH = os.getenv("STORAGE_PATH", "./players-sqlite3.db")
21+
DB_PATH = DATABASE_URL.replace("sqlite+aiosqlite:///", "")
2222

2323

2424
def test_migration_downgrade_003_removes_substitutes_only():

0 commit comments

Comments
 (0)