1818class TestCoupons :
1919 parametrize = pytest .mark .parametrize ("client" , [False , True ], indirect = True , ids = ["loose" , "strict" ])
2020
21- @pytest .mark .skip (reason = "Prism tests are disabled" )
2221 @parametrize
2322 def test_method_create (self , client : Stripe ) -> None :
2423 coupon = client .coupons .create ()
2524 assert_matches_type (Coupon , coupon , path = ["response" ])
2625
27- @pytest .mark .skip (reason = "Prism tests are disabled" )
2826 @parametrize
2927 def test_method_create_with_all_params (self , client : Stripe ) -> None :
3028 coupon = client .coupons .create (
@@ -44,7 +42,6 @@ def test_method_create_with_all_params(self, client: Stripe) -> None:
4442 )
4543 assert_matches_type (Coupon , coupon , path = ["response" ])
4644
47- @pytest .mark .skip (reason = "Prism tests are disabled" )
4845 @parametrize
4946 def test_raw_response_create (self , client : Stripe ) -> None :
5047 response = client .coupons .with_raw_response .create ()
@@ -54,7 +51,6 @@ def test_raw_response_create(self, client: Stripe) -> None:
5451 coupon = response .parse ()
5552 assert_matches_type (Coupon , coupon , path = ["response" ])
5653
57- @pytest .mark .skip (reason = "Prism tests are disabled" )
5854 @parametrize
5955 def test_streaming_response_create (self , client : Stripe ) -> None :
6056 with client .coupons .with_streaming_response .create () as response :
@@ -66,13 +62,11 @@ def test_streaming_response_create(self, client: Stripe) -> None:
6662
6763 assert cast (Any , response .is_closed ) is True
6864
69- @pytest .mark .skip (reason = "Prism tests are disabled" )
7065 @parametrize
7166 def test_method_list (self , client : Stripe ) -> None :
7267 coupon = client .coupons .list ()
7368 assert_matches_type (SyncMyCursorIDPage [Coupon ], coupon , path = ["response" ])
7469
75- @pytest .mark .skip (reason = "Prism tests are disabled" )
7670 @parametrize
7771 def test_method_list_with_all_params (self , client : Stripe ) -> None :
7872 coupon = client .coupons .list (
@@ -89,7 +83,6 @@ def test_method_list_with_all_params(self, client: Stripe) -> None:
8983 )
9084 assert_matches_type (SyncMyCursorIDPage [Coupon ], coupon , path = ["response" ])
9185
92- @pytest .mark .skip (reason = "Prism tests are disabled" )
9386 @parametrize
9487 def test_raw_response_list (self , client : Stripe ) -> None :
9588 response = client .coupons .with_raw_response .list ()
@@ -99,7 +92,6 @@ def test_raw_response_list(self, client: Stripe) -> None:
9992 coupon = response .parse ()
10093 assert_matches_type (SyncMyCursorIDPage [Coupon ], coupon , path = ["response" ])
10194
102- @pytest .mark .skip (reason = "Prism tests are disabled" )
10395 @parametrize
10496 def test_streaming_response_list (self , client : Stripe ) -> None :
10597 with client .coupons .with_streaming_response .list () as response :
@@ -117,13 +109,11 @@ class TestAsyncCoupons:
117109 "async_client" , [False , True , {"http_client" : "aiohttp" }], indirect = True , ids = ["loose" , "strict" , "aiohttp" ]
118110 )
119111
120- @pytest .mark .skip (reason = "Prism tests are disabled" )
121112 @parametrize
122113 async def test_method_create (self , async_client : AsyncStripe ) -> None :
123114 coupon = await async_client .coupons .create ()
124115 assert_matches_type (Coupon , coupon , path = ["response" ])
125116
126- @pytest .mark .skip (reason = "Prism tests are disabled" )
127117 @parametrize
128118 async def test_method_create_with_all_params (self , async_client : AsyncStripe ) -> None :
129119 coupon = await async_client .coupons .create (
@@ -143,7 +133,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncStripe) ->
143133 )
144134 assert_matches_type (Coupon , coupon , path = ["response" ])
145135
146- @pytest .mark .skip (reason = "Prism tests are disabled" )
147136 @parametrize
148137 async def test_raw_response_create (self , async_client : AsyncStripe ) -> None :
149138 response = await async_client .coupons .with_raw_response .create ()
@@ -153,7 +142,6 @@ async def test_raw_response_create(self, async_client: AsyncStripe) -> None:
153142 coupon = await response .parse ()
154143 assert_matches_type (Coupon , coupon , path = ["response" ])
155144
156- @pytest .mark .skip (reason = "Prism tests are disabled" )
157145 @parametrize
158146 async def test_streaming_response_create (self , async_client : AsyncStripe ) -> None :
159147 async with async_client .coupons .with_streaming_response .create () as response :
@@ -165,13 +153,11 @@ async def test_streaming_response_create(self, async_client: AsyncStripe) -> Non
165153
166154 assert cast (Any , response .is_closed ) is True
167155
168- @pytest .mark .skip (reason = "Prism tests are disabled" )
169156 @parametrize
170157 async def test_method_list (self , async_client : AsyncStripe ) -> None :
171158 coupon = await async_client .coupons .list ()
172159 assert_matches_type (AsyncMyCursorIDPage [Coupon ], coupon , path = ["response" ])
173160
174- @pytest .mark .skip (reason = "Prism tests are disabled" )
175161 @parametrize
176162 async def test_method_list_with_all_params (self , async_client : AsyncStripe ) -> None :
177163 coupon = await async_client .coupons .list (
@@ -188,7 +174,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncStripe) -> N
188174 )
189175 assert_matches_type (AsyncMyCursorIDPage [Coupon ], coupon , path = ["response" ])
190176
191- @pytest .mark .skip (reason = "Prism tests are disabled" )
192177 @parametrize
193178 async def test_raw_response_list (self , async_client : AsyncStripe ) -> None :
194179 response = await async_client .coupons .with_raw_response .list ()
@@ -198,7 +183,6 @@ async def test_raw_response_list(self, async_client: AsyncStripe) -> None:
198183 coupon = await response .parse ()
199184 assert_matches_type (AsyncMyCursorIDPage [Coupon ], coupon , path = ["response" ])
200185
201- @pytest .mark .skip (reason = "Prism tests are disabled" )
202186 @parametrize
203187 async def test_streaming_response_list (self , async_client : AsyncStripe ) -> None :
204188 async with async_client .coupons .with_streaming_response .list () as response :
0 commit comments