kaxil commented on code in PR #43944:
URL: https://github.com/apache/airflow/pull/43944#discussion_r1843003133


##########
tests/utils/test_session.py:
##########
@@ -53,3 +55,13 @@ def test_provide_session_with_kwargs(self):
 
         session = object()
         assert wrapper(session=session) is session
+
+    @pytest.mark.asyncio
+    async def test_async_session(self):
+        from airflow.settings import create_async_session
+
+        session = create_async_session()
+        session.add(Log(event="hihi1234"))
+        await session.commit()
+        l = await session.scalar(select(Log).where(Log.event == 
"hihi1234").limit(1))  # noqa: E741
+        assert l.event == "hihi1234"

Review Comment:
   haha I definitely understand -- and its a nit so will leave it up to you :) 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to