Prab-27 commented on code in PR #59414:
URL: https://github.com/apache/airflow/pull/59414#discussion_r2618092609


##########
providers/edge3/tests/unit/edge3/worker_api/routes/test_jobs.py:
##########
@@ -94,4 +95,4 @@ def test_state(self, mock_stats_incr, session: Session):
             )
             mock_stats_incr.call_count == 2
 
-            assert session.query(EdgeJobModel).scalar().state == 
TaskInstanceState.SUCCESS
+            assert session.scalars(select(EdgeJobModel)).first().state == 
TaskInstanceState.SUCCESS

Review Comment:
   This is Okay !! 
   We can also directly apply scalar() since we are dealing with Model 
   
   `assert session.scalar(select(EdgeJobModel)).state == 
TaskInstanceState.SUCCESS`



-- 
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