From bc712af97a074060a06614667e2973b8e110667a Mon Sep 17 00:00:00 2001 From: Daniel Standish <15932138+dstandish@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:41:16 -0800 Subject: [PATCH] Give log event a name in a test 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 ff19c0ca6dad..02cba9e070dc 100644 --- a/tests/utils/test_session.py +++ b/tests/utils/test_session.py @@ -63,5 +63,5 @@ async def test_async_session(self): 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"