@@ -160,7 +160,7 @@ def test_handle_redirect_no_code(self):
160160 with self .assertRaises (ValueError ) as context :
161161 self .oauth_handler_with_secret .handle_redirect (redirect_url )
162162
163- self .assertIn ("Authorization code not found" , str (context .exception ))
163+ self .assertIn ("Authorization code was not found in the redirect URL " , str (context .exception ))
164164
165165 def test_exchange_code_for_token_success (self ):
166166 """Test successful code exchange for token."""
@@ -242,7 +242,7 @@ def test_refresh_access_token_no_refresh_token(self):
242242 with self .assertRaises (ValueError ) as context :
243243 self .oauth_handler_with_secret .refresh_access_token ()
244244
245- self .assertIn ("No refresh token available" , str (context .exception ))
245+ self .assertIn ("Refresh token is not available" , str (context .exception ))
246246
247247 def test_refresh_access_token_failure (self ):
248248 """Test refresh access token failure."""
@@ -305,7 +305,7 @@ def test_get_valid_access_token_no_refresh_token(self):
305305 with self .assertRaises (ValueError ) as context :
306306 self .oauth_handler_with_secret .get_valid_access_token ()
307307
308- self .assertIn ("No refresh token available" , str (context .exception ))
308+ self .assertIn ("Refresh token is not available" , str (context .exception ))
309309
310310 def test_logout_success (self ):
311311 """Test successful logout."""
0 commit comments