1212from browser_use_sdk .types import (
1313 TaskView ,
1414 TaskListResponse ,
15+ TaskCreateResponse ,
1516 TaskGetLogsResponse ,
1617 TaskGetOutputFileResponse ,
1718 TaskGetUserUploadedFileResponse ,
@@ -29,7 +30,7 @@ def test_method_create(self, client: BrowserUse) -> None:
2930 task = client .tasks .create (
3031 task = "x" ,
3132 )
32- assert_matches_type (TaskView , task , path = ["response" ])
33+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
3334
3435 @pytest .mark .skip (reason = "Prism tests are disabled" )
3536 @parametrize
@@ -50,7 +51,7 @@ def test_method_create_with_all_params(self, client: BrowserUse) -> None:
5051 secrets = {"foo" : "string" },
5152 structured_output_json = "structuredOutputJson" ,
5253 )
53- assert_matches_type (TaskView , task , path = ["response" ])
54+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
5455
5556 @pytest .mark .skip (reason = "Prism tests are disabled" )
5657 @parametrize
@@ -62,7 +63,7 @@ def test_raw_response_create(self, client: BrowserUse) -> None:
6263 assert response .is_closed is True
6364 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
6465 task = response .parse ()
65- assert_matches_type (TaskView , task , path = ["response" ])
66+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
6667
6768 @pytest .mark .skip (reason = "Prism tests are disabled" )
6869 @parametrize
@@ -74,7 +75,7 @@ def test_streaming_response_create(self, client: BrowserUse) -> None:
7475 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
7576
7677 task = response .parse ()
77- assert_matches_type (TaskView , task , path = ["response" ])
78+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
7879
7980 assert cast (Any , response .is_closed ) is True
8081
@@ -366,7 +367,7 @@ async def test_method_create(self, async_client: AsyncBrowserUse) -> None:
366367 task = await async_client .tasks .create (
367368 task = "x" ,
368369 )
369- assert_matches_type (TaskView , task , path = ["response" ])
370+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
370371
371372 @pytest .mark .skip (reason = "Prism tests are disabled" )
372373 @parametrize
@@ -387,7 +388,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncBrowserUse
387388 secrets = {"foo" : "string" },
388389 structured_output_json = "structuredOutputJson" ,
389390 )
390- assert_matches_type (TaskView , task , path = ["response" ])
391+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
391392
392393 @pytest .mark .skip (reason = "Prism tests are disabled" )
393394 @parametrize
@@ -399,7 +400,7 @@ async def test_raw_response_create(self, async_client: AsyncBrowserUse) -> None:
399400 assert response .is_closed is True
400401 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
401402 task = await response .parse ()
402- assert_matches_type (TaskView , task , path = ["response" ])
403+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
403404
404405 @pytest .mark .skip (reason = "Prism tests are disabled" )
405406 @parametrize
@@ -411,7 +412,7 @@ async def test_streaming_response_create(self, async_client: AsyncBrowserUse) ->
411412 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
412413
413414 task = await response .parse ()
414- assert_matches_type (TaskView , task , path = ["response" ])
415+ assert_matches_type (TaskCreateResponse , task , path = ["response" ])
415416
416417 assert cast (Any , response .is_closed ) is True
417418
0 commit comments