@@ -101,9 +101,11 @@ def test_init_with_api_key(self, mock_api_key, mock_base_url):
101101 assert wrapper .base_url == mock_base_url
102102
103103 def test_init_without_api_key_raises (self ):
104- with patch .dict ("os.environ" , {}, clear = True ):
105- with pytest .raises (ValueError , match = "API key must be provided" ):
106- ClientWrapper ()
104+ with (
105+ patch .dict ("os.environ" , {}, clear = True ),
106+ pytest .raises (ValueError , match = "API key must be provided" ),
107+ ):
108+ ClientWrapper ()
107109
108110 def test_init_with_env_var (self , mock_api_key ):
109111 with patch .dict ("os.environ" , {"FISH_API_KEY" : mock_api_key }):
@@ -134,9 +136,11 @@ def test_init_with_api_key(self, mock_api_key, mock_base_url):
134136 assert wrapper .base_url == mock_base_url
135137
136138 def test_init_without_api_key_raises (self ):
137- with patch .dict ("os.environ" , {}, clear = True ):
138- with pytest .raises (ValueError , match = "API key must be provided" ):
139- AsyncClientWrapper ()
139+ with (
140+ patch .dict ("os.environ" , {}, clear = True ),
141+ pytest .raises (ValueError , match = "API key must be provided" ),
142+ ):
143+ AsyncClientWrapper ()
140144
141145 def test_get_headers (self , mock_api_key ):
142146 wrapper = AsyncClientWrapper (api_key = mock_api_key )
0 commit comments