@@ -68,7 +68,7 @@ async def test_get_task_existing(
6868 mock_task_store .get .return_value = expected_task
6969 retrieved_task = await task_manager .get_task ()
7070 assert retrieved_task == expected_task
71- mock_task_store .get .assert_called_once_with (MINIMAL_TASK ['id' ])
71+ mock_task_store .get .assert_called_once_with (MINIMAL_TASK ['id' ], None )
7272
7373
7474@pytest .mark .asyncio
@@ -79,7 +79,7 @@ async def test_get_task_nonexistent(
7979 mock_task_store .get .return_value = None
8080 retrieved_task = await task_manager .get_task ()
8181 assert retrieved_task is None
82- mock_task_store .get .assert_called_once_with (MINIMAL_TASK ['id' ])
82+ mock_task_store .get .assert_called_once_with (MINIMAL_TASK ['id' ], None )
8383
8484
8585@pytest .mark .asyncio
@@ -89,7 +89,7 @@ async def test_save_task_event_new_task(
8989 """Test saving a new task."""
9090 task = Task (** MINIMAL_TASK )
9191 await task_manager .save_task_event (task )
92- mock_task_store .save .assert_called_once_with (task )
92+ mock_task_store .save .assert_called_once_with (task , None )
9393
9494
9595@pytest .mark .asyncio
@@ -179,7 +179,7 @@ async def test_ensure_task_existing(
179179 )
180180 retrieved_task = await task_manager .ensure_task (event )
181181 assert retrieved_task == expected_task
182- mock_task_store .get .assert_called_once_with (MINIMAL_TASK ['id' ])
182+ mock_task_store .get .assert_called_once_with (MINIMAL_TASK ['id' ], None )
183183
184184
185185@pytest .mark .asyncio
@@ -204,7 +204,7 @@ async def test_ensure_task_nonexistent(
204204 assert new_task .id == 'new-task'
205205 assert new_task .context_id == 'some-context'
206206 assert new_task .status .state == TaskState .submitted
207- mock_task_store .save .assert_called_once_with (new_task )
207+ mock_task_store .save .assert_called_once_with (new_task , None )
208208 assert task_manager_without_id .task_id == 'new-task'
209209 assert task_manager_without_id .context_id == 'some-context'
210210
@@ -225,7 +225,7 @@ async def test_save_task(
225225 """Test saving a task."""
226226 task = Task (** MINIMAL_TASK )
227227 await task_manager ._save_task (task ) # type: ignore
228- mock_task_store .save .assert_called_once_with (task )
228+ mock_task_store .save .assert_called_once_with (task , None )
229229
230230
231231@pytest .mark .asyncio
@@ -264,7 +264,7 @@ async def test_save_task_event_new_task_no_task_id(
264264 }
265265 task = Task (** task_data )
266266 await task_manager_without_id .save_task_event (task )
267- mock_task_store .save .assert_called_once_with (task )
267+ mock_task_store .save .assert_called_once_with (task , None )
268268 assert task_manager_without_id .task_id == 'new-task-id'
269269 assert task_manager_without_id .context_id == 'some-context'
270270 # initial submit should be updated to working
0 commit comments