@@ -113,22 +113,26 @@ def test_empty_body_falls_back_to_http_status_phrase() -> None:
113113
114114
115115def test_oauth_error_with_description () -> None :
116- body = json .dumps ({
117- "error" : "invalid_client" ,
118- "error_description" : "Client authentication failed" ,
119- })
116+ body = json .dumps (
117+ {
118+ "error" : "invalid_client" ,
119+ "error_description" : "Client authentication failed" ,
120+ }
121+ )
120122 exc = _make_http_error (401 , body = body )
121123
122124 with pytest .raises (OAuthError , match = "invalid_client: Client authentication failed" ):
123125 _handle_non_200_response (exc , {401 : OAuthError })
124126
125127
126128def test_oauth_error_with_uri () -> None :
127- body = json .dumps ({
128- "error" : "invalid_scope" ,
129- "error_description" : "scope not allowed" ,
130- "error_uri" : "https://example.com/help" ,
131- })
129+ body = json .dumps (
130+ {
131+ "error" : "invalid_scope" ,
132+ "error_description" : "scope not allowed" ,
133+ "error_uri" : "https://example.com/help" ,
134+ }
135+ )
132136 exc = _make_http_error (400 , body = body )
133137
134138 with pytest .raises (OAuthError , match = r"invalid_scope: scope not allowed \(https://example.com/help\)" ):
0 commit comments