add logs for tracing processing task

This commit is contained in:
Dohyun Lim committed 2026-01-08 14:05:44 +09:00
1 parent efddee217a
commit 073777081e
81 files changed
+25300 -24561

No files matched your search

+17 -17
View File
@@ -1,17 +1,17 @@
import pytest
from sqlalchemy import text
@pytest.mark.asyncio
async def test_database_connection(test_engine):
"""테스트 엔진을 사용한 연결 테스트"""
async with test_engine.begin() as connection:
result = await connection.execute(text("SELECT 1"))
assert result.scalar() == 1
@pytest.mark.asyncio
async def test_session_usage(db_session):
"""세션을 사용한 테스트"""
result = await db_session.execute(text("SELECT 1 as num"))
assert result.scalar() == 1
import pytest
from sqlalchemy import text
@pytest.mark.asyncio
async def test_database_connection(test_engine):
"""테스트 엔진을 사용한 연결 테스트"""
async with test_engine.begin() as connection:
result = await connection.execute(text("SELECT 1"))
assert result.scalar() == 1
@pytest.mark.asyncio
async def test_session_usage(db_session):
"""세션을 사용한 테스트"""
result = await db_session.execute(text("SELECT 1 as num"))
assert result.scalar() == 1