@@ -47,7 +47,7 @@ async def test_create(self, mock_async_client: AsyncMock, devbox_view: MockDevbo
4747
4848 assert isinstance (devbox , AsyncDevbox )
4949 assert devbox .id == "dev_123"
50- mock_async_client .devboxes .create_and_await_running .assert_called_once ()
50+ mock_async_client .devboxes .create_and_await_running .assert_awaited_once ()
5151
5252 @pytest .mark .asyncio
5353 async def test_create_from_blueprint_id (self , mock_async_client : AsyncMock , devbox_view : MockDevboxView ) -> None :
@@ -115,7 +115,7 @@ async def test_list_empty(self, mock_async_client: AsyncMock) -> None:
115115 devboxes = await ops .list (limit = 10 , status = "running" )
116116
117117 assert len (devboxes ) == 0
118- mock_async_client .devboxes .list .assert_called_once ()
118+ mock_async_client .devboxes .list .assert_awaited_once ()
119119
120120 @pytest .mark .asyncio
121121 async def test_list_single (self , mock_async_client : AsyncMock , devbox_view : MockDevboxView ) -> None :
@@ -133,7 +133,7 @@ async def test_list_single(self, mock_async_client: AsyncMock, devbox_view: Mock
133133 assert len (devboxes ) == 1
134134 assert isinstance (devboxes [0 ], AsyncDevbox )
135135 assert devboxes [0 ].id == "dev_123"
136- mock_async_client .devboxes .list .assert_called_once ()
136+ mock_async_client .devboxes .list .assert_awaited_once ()
137137
138138 @pytest .mark .asyncio
139139 async def test_list_multiple (self , mock_async_client : AsyncMock ) -> None :
@@ -151,7 +151,7 @@ async def test_list_multiple(self, mock_async_client: AsyncMock) -> None:
151151 assert isinstance (devboxes [1 ], AsyncDevbox )
152152 assert devboxes [0 ].id == "dev_001"
153153 assert devboxes [1 ].id == "dev_002"
154- mock_async_client .devboxes .list .assert_called_once ()
154+ mock_async_client .devboxes .list .assert_awaited_once ()
155155
156156
157157class TestAsyncSnapshotOps :
@@ -167,7 +167,7 @@ async def test_list_empty(self, mock_async_client: AsyncMock) -> None:
167167 snapshots = await ops .list (devbox_id = "dev_123" , limit = 10 )
168168
169169 assert len (snapshots ) == 0
170- mock_async_client .devboxes .disk_snapshots .list .assert_called_once ()
170+ mock_async_client .devboxes .disk_snapshots .list .assert_awaited_once ()
171171
172172 @pytest .mark .asyncio
173173 async def test_list_single (self , mock_async_client : AsyncMock , snapshot_view : MockSnapshotView ) -> None :
@@ -185,7 +185,7 @@ async def test_list_single(self, mock_async_client: AsyncMock, snapshot_view: Mo
185185 assert len (snapshots ) == 1
186186 assert isinstance (snapshots [0 ], AsyncSnapshot )
187187 assert snapshots [0 ].id == "snap_123"
188- mock_async_client .devboxes .disk_snapshots .list .assert_called_once ()
188+ mock_async_client .devboxes .disk_snapshots .list .assert_awaited_once ()
189189
190190 @pytest .mark .asyncio
191191 async def test_list_multiple (self , mock_async_client : AsyncMock ) -> None :
@@ -203,7 +203,7 @@ async def test_list_multiple(self, mock_async_client: AsyncMock) -> None:
203203 assert isinstance (snapshots [1 ], AsyncSnapshot )
204204 assert snapshots [0 ].id == "snap_001"
205205 assert snapshots [1 ].id == "snap_002"
206- mock_async_client .devboxes .disk_snapshots .list .assert_called_once ()
206+ mock_async_client .devboxes .disk_snapshots .list .assert_awaited_once ()
207207
208208 def test_from_id (self , mock_async_client : AsyncMock ) -> None :
209209 """Test from_id method."""
@@ -230,7 +230,7 @@ async def test_create(self, mock_async_client: AsyncMock, blueprint_view: MockBl
230230
231231 assert isinstance (blueprint , AsyncBlueprint )
232232 assert blueprint .id == "bp_123"
233- mock_async_client .blueprints .create_and_await_build_complete .assert_called_once ()
233+ mock_async_client .blueprints .create_and_await_build_complete .assert_awaited_once ()
234234
235235 def test_from_id (self , mock_async_client : AsyncMock ) -> None :
236236 """Test from_id method."""
@@ -250,7 +250,7 @@ async def test_list_empty(self, mock_async_client: AsyncMock) -> None:
250250 blueprints = await ops .list (limit = 10 )
251251
252252 assert len (blueprints ) == 0
253- mock_async_client .blueprints .list .assert_called_once ()
253+ mock_async_client .blueprints .list .assert_awaited_once ()
254254
255255 @pytest .mark .asyncio
256256 async def test_list_single (self , mock_async_client : AsyncMock , blueprint_view : MockBlueprintView ) -> None :
@@ -268,7 +268,7 @@ async def test_list_single(self, mock_async_client: AsyncMock, blueprint_view: M
268268 assert len (blueprints ) == 1
269269 assert isinstance (blueprints [0 ], AsyncBlueprint )
270270 assert blueprints [0 ].id == "bp_123"
271- mock_async_client .blueprints .list .assert_called_once ()
271+ mock_async_client .blueprints .list .assert_awaited_once ()
272272
273273 @pytest .mark .asyncio
274274 async def test_list_multiple (self , mock_async_client : AsyncMock ) -> None :
@@ -286,7 +286,7 @@ async def test_list_multiple(self, mock_async_client: AsyncMock) -> None:
286286 assert isinstance (blueprints [1 ], AsyncBlueprint )
287287 assert blueprints [0 ].id == "bp_001"
288288 assert blueprints [1 ].id == "bp_002"
289- mock_async_client .blueprints .list .assert_called_once ()
289+ mock_async_client .blueprints .list .assert_awaited_once ()
290290
291291
292292class TestAsyncStorageObjectOps :
@@ -328,7 +328,7 @@ async def test_list_empty(self, mock_async_client: AsyncMock) -> None:
328328 objects = await ops .list (limit = 10 )
329329
330330 assert len (objects ) == 0
331- mock_async_client .objects .list .assert_called_once ()
331+ mock_async_client .objects .list .assert_awaited_once ()
332332
333333 @pytest .mark .asyncio
334334 async def test_list_single (self , mock_async_client : AsyncMock , object_view : MockObjectView ) -> None :
@@ -374,7 +374,7 @@ async def test_list_multiple(self, mock_async_client: AsyncMock) -> None:
374374 assert isinstance (objects [1 ], AsyncStorageObject )
375375 assert objects [0 ].id == "obj_001"
376376 assert objects [1 ].id == "obj_002"
377- mock_async_client .objects .list .assert_called_once ()
377+ mock_async_client .objects .list .assert_awaited_once ()
378378
379379 @pytest .mark .asyncio
380380 async def test_upload_from_file (
@@ -653,7 +653,7 @@ async def test_create(self, mock_async_client: AsyncMock, scorer_view: MockScore
653653
654654 assert isinstance (scorer , AsyncScorer )
655655 assert scorer .id == "scorer_123"
656- mock_async_client .scenarios .scorers .create .assert_called_once ()
656+ mock_async_client .scenarios .scorers .create .assert_awaited_once ()
657657
658658 def test_from_id (self , mock_async_client : AsyncMock ) -> None :
659659 """Test from_id method."""
@@ -677,7 +677,7 @@ async def async_iter():
677677 scorers = await ops .list (limit = 10 )
678678
679679 assert len (scorers ) == 0
680- mock_async_client .scenarios .scorers .list .assert_called_once ()
680+ mock_async_client .scenarios .scorers .list .assert_awaited_once ()
681681
682682 @pytest .mark .asyncio
683683 async def test_list_single (self , mock_async_client : AsyncMock , scorer_view : MockScorerView ) -> None :
@@ -697,7 +697,7 @@ async def async_iter():
697697 assert len (scorers ) == 1
698698 assert isinstance (scorers [0 ], AsyncScorer )
699699 assert scorers [0 ].id == "scorer_123"
700- mock_async_client .scenarios .scorers .list .assert_called_once ()
700+ mock_async_client .scenarios .scorers .list .assert_awaited_once ()
701701
702702 @pytest .mark .asyncio
703703 async def test_list_multiple (self , mock_async_client : AsyncMock ) -> None :
@@ -719,7 +719,7 @@ async def async_iter():
719719 assert isinstance (scorers [1 ], AsyncScorer )
720720 assert scorers [0 ].id == "scorer_001"
721721 assert scorers [1 ].id == "scorer_002"
722- mock_async_client .scenarios .scorers .list .assert_called_once ()
722+ mock_async_client .scenarios .scorers .list .assert_awaited_once ()
723723
724724
725725class TestAsyncRunloopSDK :
0 commit comments