import pytest

from app.db import session_scope

pytestmark = pytest.mark.asyncio


async def test_engine_configured(env):
    async with session_scope() as session:
        assert str(session.bind.engine.url) == env("SQLALCHEMY_DATABASE_URI")

[((9, 15, 9, 30), 'app.db.session_scope', 'session_scope', ({}, {}), '()', False, 'from app.db import session_scope\n')]