1414from runloop_api_client .types import (
1515 DevboxView ,
1616 DevboxListView ,
17+ DevboxSnapshotView ,
1718 DevboxSnapshotListView ,
1819 DevboxExecutionDetailView ,
1920 DevboxCreateSSHKeyResponse ,
@@ -486,7 +487,7 @@ def test_method_snapshot_disk(self, client: Runloop) -> None:
486487 devbox = client .devboxes .snapshot_disk (
487488 id = "id" ,
488489 )
489- assert devbox is None
490+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
490491
491492 @parametrize
492493 def test_method_snapshot_disk_with_all_params (self , client : Runloop ) -> None :
@@ -495,7 +496,7 @@ def test_method_snapshot_disk_with_all_params(self, client: Runloop) -> None:
495496 metadata = {"foo" : "string" },
496497 name = "name" ,
497498 )
498- assert devbox is None
499+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
499500
500501 @parametrize
501502 def test_raw_response_snapshot_disk (self , client : Runloop ) -> None :
@@ -506,7 +507,7 @@ def test_raw_response_snapshot_disk(self, client: Runloop) -> None:
506507 assert response .is_closed is True
507508 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
508509 devbox = response .parse ()
509- assert devbox is None
510+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
510511
511512 @parametrize
512513 def test_streaming_response_snapshot_disk (self , client : Runloop ) -> None :
@@ -517,7 +518,7 @@ def test_streaming_response_snapshot_disk(self, client: Runloop) -> None:
517518 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
518519
519520 devbox = response .parse ()
520- assert devbox is None
521+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
521522
522523 assert cast (Any , response .is_closed ) is True
523524
@@ -1079,7 +1080,7 @@ async def test_method_snapshot_disk(self, async_client: AsyncRunloop) -> None:
10791080 devbox = await async_client .devboxes .snapshot_disk (
10801081 id = "id" ,
10811082 )
1082- assert devbox is None
1083+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
10831084
10841085 @parametrize
10851086 async def test_method_snapshot_disk_with_all_params (self , async_client : AsyncRunloop ) -> None :
@@ -1088,7 +1089,7 @@ async def test_method_snapshot_disk_with_all_params(self, async_client: AsyncRun
10881089 metadata = {"foo" : "string" },
10891090 name = "name" ,
10901091 )
1091- assert devbox is None
1092+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
10921093
10931094 @parametrize
10941095 async def test_raw_response_snapshot_disk (self , async_client : AsyncRunloop ) -> None :
@@ -1099,7 +1100,7 @@ async def test_raw_response_snapshot_disk(self, async_client: AsyncRunloop) -> N
10991100 assert response .is_closed is True
11001101 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
11011102 devbox = await response .parse ()
1102- assert devbox is None
1103+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
11031104
11041105 @parametrize
11051106 async def test_streaming_response_snapshot_disk (self , async_client : AsyncRunloop ) -> None :
@@ -1110,7 +1111,7 @@ async def test_streaming_response_snapshot_disk(self, async_client: AsyncRunloop
11101111 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
11111112
11121113 devbox = await response .parse ()
1113- assert devbox is None
1114+ assert_matches_type ( DevboxSnapshotView , devbox , path = [ "response" ])
11141115
11151116 assert cast (Any , response .is_closed ) is True
11161117
0 commit comments