Skip to content

Commit

Permalink
Give log event a name in a test (#44046)
Browse files Browse the repository at this point in the history
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 ;)
  • Loading branch information
dstandish authored Nov 15, 2024
1 parent 0393c1f commit 19303ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 19303ca

Please sign in to comment.