This commit is contained in:
@@ -109,6 +109,7 @@ class TestOAuthFunctional:
|
||||
"state": "valid_state",
|
||||
"code": "auth_code_123"
|
||||
}
|
||||
request.path_params = {"provider": "google"} # Для callback используем path_params
|
||||
request.url = "https://localhost:3000/oauth/google/callback?state=valid_state&code=auth_code_123"
|
||||
request.headers = {"user-agent": "test-browser"}
|
||||
request.client = MagicMock()
|
||||
@@ -238,6 +239,7 @@ class TestOAuthFunctional:
|
||||
|
||||
# Тест 3: Callback без code (но с правильным OAuth клиентом)
|
||||
request.query_params = {"state": "valid_state"}
|
||||
request.path_params = {"provider": "google"} # Для callback используем path_params
|
||||
oauth_data = {"provider": "google", "code_verifier": "test"}
|
||||
|
||||
mock_client = AsyncMock()
|
||||
|
||||
Reference in New Issue
Block a user