This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 19303ca655a Give log event a name in a test (#44046)
19303ca655a is described below
commit 19303ca655ad8f977642be49dc225433ffa3cef5
Author: Daniel Standish <[email protected]>
AuthorDate: Thu Nov 14 16:59:36 2024 -0800
Give log event a name in a test (#44046)
This is mostly pointless but hey.
I didn't want to write log because there's often a log var. I was annoyed
that pre-commit was complaining about this so I just noqa'd it. But what Kaxil
wants, Kaxil gets ;)
---
tests/utils/test_session.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/utils/test_session.py b/tests/utils/test_session.py
index ff19c0ca6da..02cba9e070d 100644
--- a/tests/utils/test_session.py
+++ b/tests/utils/test_session.py
@@ -63,5 +63,5 @@ class TestSession:
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"
+ my_special_log_event = await
session.scalar(select(Log).where(Log.event == "hihi1234").limit(1))
+ assert my_special_log_event.event == "hihi1234"