File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -171,11 +171,11 @@ async def test_cloud_sql_error_messages_get_metadata(
171171 )
172172 with pytest .raises (ClientResponseError ) as exc_info :
173173 await client ._get_metadata ("my-project" , "my-region" , "my-instance" )
174- assert exc_info .status == 403
175- assert (
176- exc_info .message
177- == "Cloud SQL Admin API has not been used in project 123456789 before or it is disabled"
178- )
174+ assert exc_info . value .status == 403
175+ assert (
176+ exc_info . value .message
177+ == "Cloud SQL Admin API has not been used in project 123456789 before or it is disabled"
178+ )
179179 await client .close ()
180180
181181
@@ -207,6 +207,6 @@ async def test_cloud_sql_error_messages_get_ephemeral(
207207 )
208208 with pytest .raises (ClientResponseError ) as exc_info :
209209 await client ._get_ephemeral ("my-project" , "my-instance" , "my-key" )
210- assert exc_info .status == 404
211- assert exc_info .message == "The Cloud SQL instance does not exist."
210+ assert exc_info . value .status == 404
211+ assert exc_info . value .message == "The Cloud SQL instance does not exist."
212212 await client .close ()
You can’t perform that action at this time.
0 commit comments