9
9
10
10
from inty import Inty , AsyncInty
11
11
from tests .utils import assert_matches_type
12
- from inty .types .api .v1 .users import User
12
+ from inty .types .api .v1 .users import User , ProfileRetrieveResponse
13
13
14
14
base_url = os .environ .get ("TEST_API_BASE_URL" , "http://127.0.0.1:4010" )
15
15
@@ -21,7 +21,7 @@ class TestProfile:
21
21
@parametrize
22
22
def test_method_retrieve (self , client : Inty ) -> None :
23
23
profile = client .api .v1 .users .profile .retrieve ()
24
- assert_matches_type (User , profile , path = ["response" ])
24
+ assert_matches_type (ProfileRetrieveResponse , profile , path = ["response" ])
25
25
26
26
@pytest .mark .skip (reason = "Prism tests are disabled" )
27
27
@parametrize
@@ -31,7 +31,7 @@ def test_raw_response_retrieve(self, client: Inty) -> None:
31
31
assert response .is_closed is True
32
32
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
33
33
profile = response .parse ()
34
- assert_matches_type (User , profile , path = ["response" ])
34
+ assert_matches_type (ProfileRetrieveResponse , profile , path = ["response" ])
35
35
36
36
@pytest .mark .skip (reason = "Prism tests are disabled" )
37
37
@parametrize
@@ -41,7 +41,7 @@ def test_streaming_response_retrieve(self, client: Inty) -> None:
41
41
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
42
42
43
43
profile = response .parse ()
44
- assert_matches_type (User , profile , path = ["response" ])
44
+ assert_matches_type (ProfileRetrieveResponse , profile , path = ["response" ])
45
45
46
46
assert cast (Any , response .is_closed ) is True
47
47
@@ -98,7 +98,7 @@ class TestAsyncProfile:
98
98
@parametrize
99
99
async def test_method_retrieve (self , async_client : AsyncInty ) -> None :
100
100
profile = await async_client .api .v1 .users .profile .retrieve ()
101
- assert_matches_type (User , profile , path = ["response" ])
101
+ assert_matches_type (ProfileRetrieveResponse , profile , path = ["response" ])
102
102
103
103
@pytest .mark .skip (reason = "Prism tests are disabled" )
104
104
@parametrize
@@ -108,7 +108,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncInty) -> None:
108
108
assert response .is_closed is True
109
109
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
110
110
profile = await response .parse ()
111
- assert_matches_type (User , profile , path = ["response" ])
111
+ assert_matches_type (ProfileRetrieveResponse , profile , path = ["response" ])
112
112
113
113
@pytest .mark .skip (reason = "Prism tests are disabled" )
114
114
@parametrize
@@ -118,7 +118,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncInty) -> Non
118
118
assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
119
119
120
120
profile = await response .parse ()
121
- assert_matches_type (User , profile , path = ["response" ])
121
+ assert_matches_type (ProfileRetrieveResponse , profile , path = ["response" ])
122
122
123
123
assert cast (Any , response .is_closed ) is True
124
124
0 commit comments