@@ -353,16 +353,7 @@ def test_validate_headers(self) -> None:
353353 with update_env (** {"LETTA_API_KEY" : Omit ()}):
354354 client2 = Letta (base_url = base_url , api_key = None , _strict_response_validation = True )
355355
356- with pytest .raises (
357- TypeError ,
358- match = "Could not resolve authentication method. Expected the api_key to be set. Or for the `Authorization` headers to be explicitly omitted" ,
359- ):
360- client2 ._build_request (FinalRequestOptions (method = "get" , url = "/foo" ))
361-
362- request2 = client2 ._build_request (
363- FinalRequestOptions (method = "get" , url = "/foo" , headers = {"Authorization" : Omit ()})
364- )
365- assert request2 .headers .get ("Authorization" ) is None
356+ client2 ._build_request (FinalRequestOptions (method = "get" , url = "/foo" ))
366357
367358 def test_default_query_option (self ) -> None :
368359 client = Letta (
@@ -1204,16 +1195,7 @@ def test_validate_headers(self) -> None:
12041195 with update_env (** {"LETTA_API_KEY" : Omit ()}):
12051196 client2 = AsyncLetta (base_url = base_url , api_key = None , _strict_response_validation = True )
12061197
1207- with pytest .raises (
1208- TypeError ,
1209- match = "Could not resolve authentication method. Expected the api_key to be set. Or for the `Authorization` headers to be explicitly omitted" ,
1210- ):
1211- client2 ._build_request (FinalRequestOptions (method = "get" , url = "/foo" ))
1212-
1213- request2 = client2 ._build_request (
1214- FinalRequestOptions (method = "get" , url = "/foo" , headers = {"Authorization" : Omit ()})
1215- )
1216- assert request2 .headers .get ("Authorization" ) is None
1198+ client2 ._build_request (FinalRequestOptions (method = "get" , url = "/foo" ))
12171199
12181200 async def test_default_query_option (self ) -> None :
12191201 client = AsyncLetta (
0 commit comments