2121 ScanGetResponse ,
2222 ScanHARResponse ,
2323 ScanListResponse ,
24+ ScanCreateResponse ,
2425 ScanBulkCreateResponse ,
2526)
2627
@@ -36,7 +37,7 @@ def test_method_create(self, client: Cloudflare) -> None:
3637 account_id = "account_id" ,
3738 url = "https://www.example.com" ,
3839 )
39- assert_matches_type (str , scan , path = ["response" ])
40+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
4041
4142 @parametrize
4243 def test_method_create_with_all_params (self , client : Cloudflare ) -> None :
@@ -50,7 +51,7 @@ def test_method_create_with_all_params(self, client: Cloudflare) -> None:
5051 screenshots_resolutions = ["desktop" ],
5152 visibility = "Public" ,
5253 )
53- assert_matches_type (str , scan , path = ["response" ])
54+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
5455
5556 @parametrize
5657 def test_raw_response_create (self , client : Cloudflare ) -> None :
@@ -62,7 +63,7 @@ def test_raw_response_create(self, client: Cloudflare) -> None:
6263 assert response .is_closed is True
6364 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
6465 scan = response .parse ()
65- assert_matches_type (str , scan , path = ["response" ])
66+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
6667
6768 @parametrize
6869 def test_streaming_response_create (self , client : Cloudflare ) -> None :
@@ -74,7 +75,7 @@ def test_streaming_response_create(self, client: Cloudflare) -> None:
7475 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
7576
7677 scan = response .parse ()
77- assert_matches_type (str , scan , path = ["response" ])
78+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
7879
7980 assert cast (Any , response .is_closed ) is True
8081
@@ -428,7 +429,7 @@ async def test_method_create(self, async_client: AsyncCloudflare) -> None:
428429 account_id = "account_id" ,
429430 url = "https://www.example.com" ,
430431 )
431- assert_matches_type (str , scan , path = ["response" ])
432+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
432433
433434 @parametrize
434435 async def test_method_create_with_all_params (self , async_client : AsyncCloudflare ) -> None :
@@ -442,7 +443,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCloudflare
442443 screenshots_resolutions = ["desktop" ],
443444 visibility = "Public" ,
444445 )
445- assert_matches_type (str , scan , path = ["response" ])
446+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
446447
447448 @parametrize
448449 async def test_raw_response_create (self , async_client : AsyncCloudflare ) -> None :
@@ -454,7 +455,7 @@ async def test_raw_response_create(self, async_client: AsyncCloudflare) -> None:
454455 assert response .is_closed is True
455456 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
456457 scan = await response .parse ()
457- assert_matches_type (str , scan , path = ["response" ])
458+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
458459
459460 @parametrize
460461 async def test_streaming_response_create (self , async_client : AsyncCloudflare ) -> None :
@@ -466,7 +467,7 @@ async def test_streaming_response_create(self, async_client: AsyncCloudflare) ->
466467 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
467468
468469 scan = await response .parse ()
469- assert_matches_type (str , scan , path = ["response" ])
470+ assert_matches_type (ScanCreateResponse , scan , path = ["response" ])
470471
471472 assert cast (Any , response .is_closed ) is True
472473
0 commit comments