@@ -21,17 +21,17 @@ class TestAuth:
2121 @parametrize
2222 def test_method_issue_token (self , client : Courier ) -> None :
2323 auth = client .auth .issue_token (
24- expires_in = "expires_in " ,
25- scope = "scope " ,
24+ expires_in = "$YOUR_NUMBER days " ,
25+ scope = "user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands " ,
2626 )
2727 assert_matches_type (AuthIssueTokenResponse , auth , path = ["response" ])
2828
2929 @pytest .mark .skip (reason = "Prism tests are disabled" )
3030 @parametrize
3131 def test_raw_response_issue_token (self , client : Courier ) -> None :
3232 response = client .auth .with_raw_response .issue_token (
33- expires_in = "expires_in " ,
34- scope = "scope " ,
33+ expires_in = "$YOUR_NUMBER days " ,
34+ scope = "user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands " ,
3535 )
3636
3737 assert response .is_closed is True
@@ -43,8 +43,8 @@ def test_raw_response_issue_token(self, client: Courier) -> None:
4343 @parametrize
4444 def test_streaming_response_issue_token (self , client : Courier ) -> None :
4545 with client .auth .with_streaming_response .issue_token (
46- expires_in = "expires_in " ,
47- scope = "scope " ,
46+ expires_in = "$YOUR_NUMBER days " ,
47+ scope = "user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands " ,
4848 ) as response :
4949 assert not response .is_closed
5050 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
@@ -64,17 +64,17 @@ class TestAsyncAuth:
6464 @parametrize
6565 async def test_method_issue_token (self , async_client : AsyncCourier ) -> None :
6666 auth = await async_client .auth .issue_token (
67- expires_in = "expires_in " ,
68- scope = "scope " ,
67+ expires_in = "$YOUR_NUMBER days " ,
68+ scope = "user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands " ,
6969 )
7070 assert_matches_type (AuthIssueTokenResponse , auth , path = ["response" ])
7171
7272 @pytest .mark .skip (reason = "Prism tests are disabled" )
7373 @parametrize
7474 async def test_raw_response_issue_token (self , async_client : AsyncCourier ) -> None :
7575 response = await async_client .auth .with_raw_response .issue_token (
76- expires_in = "expires_in " ,
77- scope = "scope " ,
76+ expires_in = "$YOUR_NUMBER days " ,
77+ scope = "user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands " ,
7878 )
7979
8080 assert response .is_closed is True
@@ -86,8 +86,8 @@ async def test_raw_response_issue_token(self, async_client: AsyncCourier) -> Non
8686 @parametrize
8787 async def test_streaming_response_issue_token (self , async_client : AsyncCourier ) -> None :
8888 async with async_client .auth .with_streaming_response .issue_token (
89- expires_in = "expires_in " ,
90- scope = "scope " ,
89+ expires_in = "$YOUR_NUMBER days " ,
90+ scope = "user_id:$YOUR_USER_ID write:user-tokens inbox:read:messages inbox:write:events read:preferences write:preferences read:brands " ,
9191 ) as response :
9292 assert not response .is_closed
9393 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
0 commit comments