@@ -271,7 +271,7 @@ def test_method_import(self, client: Supermemory) -> None:
271271 connection = client .connections .import_ (
272272 provider = "notion" ,
273273 )
274- assert connection is None
274+ assert_matches_type ( str , connection , path = [ "response" ])
275275
276276 @pytest .mark .skip (reason = "Prism tests are disabled" )
277277 @parametrize
@@ -280,7 +280,7 @@ def test_method_import_with_all_params(self, client: Supermemory) -> None:
280280 provider = "notion" ,
281281 container_tags = ["user_123" , "project_123" ],
282282 )
283- assert connection is None
283+ assert_matches_type ( str , connection , path = [ "response" ])
284284
285285 @pytest .mark .skip (reason = "Prism tests are disabled" )
286286 @parametrize
@@ -292,7 +292,7 @@ def test_raw_response_import(self, client: Supermemory) -> None:
292292 assert response .is_closed is True
293293 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
294294 connection = response .parse ()
295- assert connection is None
295+ assert_matches_type ( str , connection , path = [ "response" ])
296296
297297 @pytest .mark .skip (reason = "Prism tests are disabled" )
298298 @parametrize
@@ -304,7 +304,7 @@ def test_streaming_response_import(self, client: Supermemory) -> None:
304304 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
305305
306306 connection = response .parse ()
307- assert connection is None
307+ assert_matches_type ( str , connection , path = [ "response" ])
308308
309309 assert cast (Any , response .is_closed ) is True
310310
@@ -603,7 +603,7 @@ async def test_method_import(self, async_client: AsyncSupermemory) -> None:
603603 connection = await async_client .connections .import_ (
604604 provider = "notion" ,
605605 )
606- assert connection is None
606+ assert_matches_type ( str , connection , path = [ "response" ])
607607
608608 @pytest .mark .skip (reason = "Prism tests are disabled" )
609609 @parametrize
@@ -612,7 +612,7 @@ async def test_method_import_with_all_params(self, async_client: AsyncSupermemor
612612 provider = "notion" ,
613613 container_tags = ["user_123" , "project_123" ],
614614 )
615- assert connection is None
615+ assert_matches_type ( str , connection , path = [ "response" ])
616616
617617 @pytest .mark .skip (reason = "Prism tests are disabled" )
618618 @parametrize
@@ -624,7 +624,7 @@ async def test_raw_response_import(self, async_client: AsyncSupermemory) -> None
624624 assert response .is_closed is True
625625 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
626626 connection = await response .parse ()
627- assert connection is None
627+ assert_matches_type ( str , connection , path = [ "response" ])
628628
629629 @pytest .mark .skip (reason = "Prism tests are disabled" )
630630 @parametrize
@@ -636,7 +636,7 @@ async def test_streaming_response_import(self, async_client: AsyncSupermemory) -
636636 assert response .http_request .headers .get ("X-Stainless-Lang" ) == "python"
637637
638638 connection = await response .parse ()
639- assert connection is None
639+ assert_matches_type ( str , connection , path = [ "response" ])
640640
641641 assert cast (Any , response .is_closed ) is True
642642
0 commit comments