Skip to content

Commit 9ee5776

Browse files
committed
Fix migration path in conftest.py
1 parent d080f06 commit 9ee5776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastapi/test_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ async def test_cache(next_db):
272272
@pytest.fixture
273273
def apply_migrations(db_name):
274274
test_db_url = f"postgresql://{{settings.POSTGRES_USER}}:{{settings.POSTGRES_PASSWORD.get_secret_value()}}@{{settings.POSTGRES_HOST}}:5432/{{db_name}}"
275-
migration_dir = ROOT_PATH.parent
275+
migration_dir = ROOT_PATH
276276
277277
with patch.dict(os.environ, {{"DATABASE_URL": test_db_url}}):
278278
subprocess.run(["sqlx", "database", "create"], cwd=migration_dir)

0 commit comments

Comments
 (0)